projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Explicitly list HpcParser as a module in hpc-bin
[ghc-hetmet.git]
/
driver
/
Makefile
diff --git
a/driver/Makefile
b/driver/Makefile
index
3a87ab4
..
cf842e4
100644
(file)
--- a/
driver/Makefile
+++ b/
driver/Makefile
@@
-9,13
+9,15
@@
include $(TOP)/mk/boilerplate.mk
SUBDIRS = mangler split ghc ghci
SUBDIRS = mangler split ghc ghci
-boot all :: package.conf.inplace package.conf
+INPLACE_DATA_DIR = $(FPTOOLS_TOP_ABS)/inplace-datadir
+INPLACE_PKG_CONF = $(INPLACE_DATA_DIR)/package.conf
+# Used to signal that we are inplace, as opposed to installed:
+INPLACE_FILE = $(INPLACE_DATA_DIR)/inplace
-package.conf.inplace :
- echo "[]" > $@
-
-package.conf :
- echo "[]" > $@
+boot all ::
+ $(MKDIRHIER) $(INPLACE_DATA_DIR)
+ test -e $(INPLACE_PKG_CONF) || echo "[]" > $(INPLACE_PKG_CONF)
+ touch $(INPLACE_FILE)
override datadir = $(libdir)
INSTALL_DATAS += package.conf ghc-usage.txt ghci-usage.txt
override datadir = $(libdir)
INSTALL_DATAS += package.conf ghc-usage.txt ghci-usage.txt
@@
-25,4
+27,10
@@
INSTALL_DATAS += package.conf ghc-usage.txt ghci-usage.txt
# re-installing packages.
CLEAN_FILES += package.conf* stamp-pkg-conf*
# 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
include $(TOP)/mk/target.mk