diff options
author | Ian Lynagh <igloo@earth.li> | 2007-05-31 14:35:05 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2007-05-31 14:35:05 +0000 |
commit | 430453c5131592b6147a80202dc5f7fbe3f3d5fd (patch) | |
tree | 9c7cdf6b13a8586dfa653bb9ff393da5640d2599 /driver/split | |
parent | ad9d754d2b18d4dd027884e082c20777a29ef7d4 (diff) | |
download | haskell-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/Makefile | 17 |
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 |