summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Marlow <simonmar@microsoft.com>2007-05-24 13:54:56 +0000
committerSimon Marlow <simonmar@microsoft.com>2007-05-24 13:54:56 +0000
commit02856ea491a11076e293af3ec8c1d35740bcb551 (patch)
tree6acd96eadda05bb02ca1413f1728d9fc054d0dc5
parentd11e18f6a7716bf716d25893de61daf3b096abb1 (diff)
downloadhaskell-02856ea491a11076e293af3ec8c1d35740bcb551.tar.gz
add a rule for creating makefiles as <dir>/CabalMakefile
Not done by default yet, but useful when hacking on libraries.
-rw-r--r--libraries/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/libraries/Makefile b/libraries/Makefile
index a76739ee87..5311d55a31 100644
--- a/libraries/Makefile
+++ b/libraries/Makefile
@@ -200,6 +200,13 @@ build.library.%: stamp/configure.library.build$(CONFIGURE_STAMP_EXTRAS).% \
$(addprefix --ghc-option=,$(GhcLibHcOpts))
ifBuildable/ifBuildable $* setup/Setup register --inplace
+$(foreach SUBDIR,$(SUBDIRS),$(SUBDIR)/CabalMakefile):\
+%/CabalMakefile: stamp/configure.library.build$(CONFIGURE_STAMP_EXTRAS).% \
+ %/setup/Setup ifBuildable/ifBuildable
+ $(RM) $*/CabalMakefile
+ ifBuildable/ifBuildable $* setup/Setup makefile -f CabalMakefile \
+ $(addprefix --ghc-option=,$(GhcLibHcOpts))
+
.PHONY: doc
DOC_SUBDIRS = $(filter-out haskell98,$(SUBDIRS))