summaryrefslogtreecommitdiff
path: root/driver
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2007-06-01 19:06:59 +0000
committerIan Lynagh <igloo@earth.li>2007-06-01 19:06:59 +0000
commit79b5a2cb4b9ed5fe41a05fa2ec98bd1f83971daf (patch)
tree0c416a30476cbc2ebeaa8b3ada902587f123f0e5 /driver
parent430453c5131592b6147a80202dc5f7fbe3f3d5fd (diff)
downloadhaskell-79b5a2cb4b9ed5fe41a05fa2ec98bd1f83971daf.tar.gz
Fix bindist creation
Bindists should now work again, when doing "make install" at least. "make in-place" is probably still broken.
Diffstat (limited to 'driver')
-rw-r--r--driver/Makefile6
-rw-r--r--driver/ghc/Makefile4
-rw-r--r--driver/ghci/Makefile4
-rw-r--r--driver/mangler/Makefile5
-rw-r--r--driver/split/Makefile5
5 files changed, 24 insertions, 0 deletions
diff --git a/driver/Makefile b/driver/Makefile
index 3a87ab43c5..a8352090c1 100644
--- a/driver/Makefile
+++ b/driver/Makefile
@@ -25,4 +25,10 @@ INSTALL_DATAS += package.conf ghc-usage.txt ghci-usage.txt
# re-installing packages.
CLEAN_FILES += package.conf* stamp-pkg-conf*
+binary-dist:
+ $(INSTALL_DIR) $(BIN_DIST_DIR)/driver
+ $(INSTALL_DATA) Makefile $(BIN_DIST_DIR)/driver
+ $(INSTALL_DATA) $(INSTALL_DATAS) $(BIN_DIST_DIR)/driver
+ set -e; for d in $(SUBDIRS); do $(MAKE) -C $$d binary-dist; done
+
include $(TOP)/mk/target.mk
diff --git a/driver/ghc/Makefile b/driver/ghc/Makefile
index 69abe6cb8a..3b481ec44a 100644
--- a/driver/ghc/Makefile
+++ b/driver/ghc/Makefile
@@ -23,4 +23,8 @@ endif
# -----------------------------------------------------------------------------
+binary-dist:
+ $(INSTALL_DIR) $(BIN_DIST_DIR)/driver/ghc
+ $(INSTALL_DATA) Makefile $(BIN_DIST_DIR)/driver/ghc/
+
include $(TOP)/mk/target.mk
diff --git a/driver/ghci/Makefile b/driver/ghci/Makefile
index 14e0c33775..2b15d94ed5 100644
--- a/driver/ghci/Makefile
+++ b/driver/ghci/Makefile
@@ -61,4 +61,8 @@ ghci.res : ghci.rc ghci.ico
windres -o ghci.res -i ghci.rc -O coff
endif
+binary-dist:
+ $(INSTALL_DIR) $(BIN_DIST_DIR)/driver/ghci
+ $(INSTALL_DATA) Makefile $(BIN_DIST_DIR)/driver/ghci/
+
include $(TOP)/mk/target.mk
diff --git a/driver/mangler/Makefile b/driver/mangler/Makefile
index 7c4d276b0c..aaec710d53 100644
--- a/driver/mangler/Makefile
+++ b/driver/mangler/Makefile
@@ -20,4 +20,9 @@ ifeq "$(BootingFromHc)" "YES"
boot :: all
endif
+binary-dist:
+ $(INSTALL_DIR) $(BIN_DIST_DIR)/driver/mangler
+ $(INSTALL_DATA) Makefile $(BIN_DIST_DIR)/driver/mangler/
+ $(INSTALL_PROGRAM) $(PROG) $(BIN_DIST_DIR)/driver/mangler/
+
include $(TOP)/mk/target.mk
diff --git a/driver/split/Makefile b/driver/split/Makefile
index 382388fe77..cc789203c9 100644
--- a/driver/split/Makefile
+++ b/driver/split/Makefile
@@ -15,4 +15,9 @@ all:: $(PROG).prl
INSTALL_LIBEXEC_SCRIPTS += $(PROG)
CLEAN_FILES += $(PROG) $(PROG).prl
+binary-dist:
+ $(INSTALL_DIR) $(BIN_DIST_DIR)/driver/split
+ $(INSTALL_DATA) Makefile $(BIN_DIST_DIR)/driver/split/
+ $(INSTALL_PROGRAM) $(PROG) $(BIN_DIST_DIR)/driver/split/
+
include $(TOP)/mk/target.mk