Use unlit_INPLACE rather than UNLIT in the build system
authorIan Lynagh <ian@well-typed.com>
Sun, 3 Mar 2013 20:27:51 +0000 (20:27 +0000)
committerIan Lynagh <ian@well-typed.com>
Sun, 3 Mar 2013 20:27:51 +0000 (20:27 +0000)
compiler/ghc.mk
ghc/ghc.mk
mk/config.mk.in
rules/build-perl.mk
utils/unlit/ghc.mk

index 0cceed0..a27208b 100644 (file)
@@ -102,7 +102,7 @@ endif
        @echo 'cRAWCPP_FLAGS         :: String'                             >> $@
        @echo 'cRAWCPP_FLAGS         = "$(RAWCPP_FLAGS)"'                   >> $@
        @echo 'cGHC_UNLIT_PGM        :: String'                             >> $@
-       @echo 'cGHC_UNLIT_PGM        = "$(GHC_UNLIT_PGM)"'                  >> $@
+       @echo 'cGHC_UNLIT_PGM        = "$(utils/unlit_dist_PROG)"'          >> $@
        @echo 'cGHC_SPLIT_PGM        :: String'                             >> $@
        @echo 'cGHC_SPLIT_PGM        = "$(GHC_SPLIT_PGM)"'                  >> $@
        @echo 'cLibFFI               :: Bool'                               >> $@
index 13a3e54..73d0253 100644 (file)
@@ -141,7 +141,7 @@ $(INPLACE_LIB)/platformConstants: $(includes_GHCCONSTANTS_HASKELL_VALUE)
 # The GHC programs need to depend on all the helper programs they might call,
 # and the settings files they use
 
-GHC_DEPENDENCIES += $(UNLIT)
+GHC_DEPENDENCIES += $$(unlit_INPLACE)
 GHC_DEPENDENCIES += $(INPLACE_LIB)/settings
 GHC_DEPENDENCIES += $(INPLACE_LIB)/platformConstants
 
index 1488a5a..69bb2b8 100644 (file)
@@ -434,11 +434,9 @@ SRC_FLEX_OPTS      += -8
 #      xxx_PGM          the name of an executable, without the path
 #      xxx              the executable relative to the current dir
 
-GHC_UNLIT_PGM           = unlit$(exeext)
 GHC_SPLIT_PGM           = ghc-split
 
 SPLIT               = $(INPLACE_LIB)/$(GHC_SPLIT_PGM)
-UNLIT               = $(INPLACE_LIB)/$(GHC_UNLIT_PGM)
 TOUCHY              = $(INPLACE_LIB)/touchy$(exeext)
 MKDIRHIER           = $(INPLACE_BIN)/mkdirhier
 
index b39134f..74c05b5 100644 (file)
@@ -39,8 +39,8 @@ clean_$1 : clean_$1_$2
 # INPLACE_BIN etc. might be empty if we're cleaning
 ifeq "$(findstring clean,$(MAKECMDGOALS))" ""
 ifneq "$$(BINDIST)" "YES"
-$1/$2/$$($1_$2_PROG).prl: $1/$$($1_PERL_SRC) $$(UNLIT) | $$$$(dir $$$$@)/.
-       "$$(UNLIT)" $$(UNLIT_OPTS) $$< $$@
+$1/$2/$$($1_$2_PROG).prl: $1/$$($1_PERL_SRC) $$$$(unlit_INPLACE) | $$$$(dir $$$$@)/.
+       "$$(unlit_INPLACE)" $$(UNLIT_OPTS) $$< $$@
 endif
 
 $1/$2/$$($1_$2_PROG): $1/$2/$$($1_$2_PROG).prl
index 1bdf4a0..597a901 100644 (file)
@@ -11,7 +11,7 @@
 # -----------------------------------------------------------------------------
 
 utils/unlit_dist_C_SRCS  = unlit.c
-utils/unlit_dist_PROG    = $(GHC_UNLIT_PGM)
+utils/unlit_dist_PROG    = unlit$(exeext)
 utils/unlit_dist_TOPDIR  = YES
 utils/unlit_dist_INSTALL = YES
 utils/unlit_dist_INSTALL_INPLACE = YES