summaryrefslogtreecommitdiff
path: root/driver/split
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/split
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/split')
-rw-r--r--driver/split/Makefile17
1 files changed, 9 insertions, 8 deletions
diff --git a/driver/split/Makefile b/driver/split/Makefile
index 6b545de20f..382388fe77 100644
--- a/driver/split/Makefile
+++ b/driver/split/Makefile
@@ -4,14 +4,15 @@
TOP=../..
include $(TOP)/mk/boilerplate.mk
-SCRIPT_PROG = ghc-split
+PROG = ghc-split
+all:: $(PROG).prl
+ $(RM) -f $(PROG)
+ echo '#!$(PERL)' >> $(PROG)
+ echo '$$TARGETPLATFORM = "$(TARGETPLATFORM)";' >> $(PROG)
+ cat $< >> $(PROG)
+ $(EXECUTABLE_FILE) $(PROG)
-INTERP=perl
-
-SCRIPT_SUBST_VARS := TARGETPLATFORM
-
-INSTALL_LIBEXEC_SCRIPTS += $(SCRIPT_PROG)
-
-CLEAN_FILES += $(SCRIPT_OBJS)
+INSTALL_LIBEXEC_SCRIPTS += $(PROG)
+CLEAN_FILES += $(PROG) $(PROG).prl
include $(TOP)/mk/target.mk