[project @ 2001-07-16 10:29:42 by rrt]
[ghc-hetmet.git] / ghc / mk / boilerplate.mk
index 70f40c5..ec155f0 100644 (file)
@@ -10,6 +10,8 @@
 # Remember, TOP is the top level of the innermost level
 # (FPTOOLS_TOP is the fptools top)
 
+-include $(TOP)/mk/version.mk
+
 # We need to set TOP to be the TOP that the next level up expects!
 # The TOP variable is reset after the inclusion of the fptools
 # boilerplate, so we stash TOP away first:
@@ -28,12 +30,10 @@ TOP:=$(GHC_TOP)
 
 -include $(TOP)/mk/paths.mk
 -include $(TOP)/mk/opts.mk
--include $(TOP)/mk/version.mk
 -include $(TOP)/mk/suffix.mk
 
 # -----------------------------------------------------------------
-# Override $(libdir) and $(datadir), so GHC stuff gets installed 
-# into a suitable subdirectory of $(libdir).
+# Override $(libexecdir): we like our binaries in a subdirectory
+# of $(libdir).
 
-libdir  := $(libdir)/$(ProjectNameShort)-$(ProjectVersion)
-datadir := $(datadir)/$(ProjectNameShort)-$(ProjectVersion)
+libexecdir := $(libdir)/extra-bin