summaryrefslogtreecommitdiff
path: root/driver/mangler
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2007-05-31 14:35:05 +0000
committerIan Lynagh <igloo@earth.li>2007-05-31 14:35:05 +0000
commit430453c5131592b6147a80202dc5f7fbe3f3d5fd (patch)
tree9c7cdf6b13a8586dfa653bb9ff393da5640d2599 /driver/mangler
parentad9d754d2b18d4dd027884e082c20777a29ef7d4 (diff)
downloadhaskell-430453c5131592b6147a80202dc5f7fbe3f3d5fd.tar.gz
Rework the build system a bit
Key changes: * Always build as if BIN_DIST is 1. BIN_DIST is thus removed. * Libraries are configured with prefix set to $$topdir rather than $(prefix)
Diffstat (limited to 'driver/mangler')
-rw-r--r--driver/mangler/Makefile19
1 files changed, 10 insertions, 9 deletions
diff --git a/driver/mangler/Makefile b/driver/mangler/Makefile
index 7b482e1d98..7c4d276b0c 100644
--- a/driver/mangler/Makefile
+++ b/driver/mangler/Makefile
@@ -4,15 +4,16 @@
TOP=../..
include $(TOP)/mk/boilerplate.mk
-SCRIPT_PROG = ghc-asm
-
-INTERP=perl
-
-SCRIPT_SUBST_VARS := TARGETPLATFORM
-
-INSTALL_LIBEXEC_SCRIPTS += $(SCRIPT_PROG)
-
-CLEAN_FILES += $(SCRIPT_OBJS)
+PROG = ghc-asm
+all:: $(PROG).prl
+ $(RM) -f $(PROG)
+ echo '#!$(PERL)' >> $(PROG)
+ echo '$$TARGETPLATFORM = "$(TARGETPLATFORM)";' >> $(PROG)
+ cat $< >> $(PROG)
+ $(EXECUTABLE_FILE) $(PROG)
+
+INSTALL_LIBEXEC_SCRIPTS += $(PROG)
+CLEAN_FILES += $(PROG) $(PROG).prl
# needed for bootstrapping with HC files
ifeq "$(BootingFromHc)" "YES"