Commit 02856ea4 authored by Simon Marlow's avatar Simon Marlow

add a rule for creating makefiles as <dir>/CabalMakefile

Not done by default yet, but useful when hacking on libraries.
parent d11e18f6
......@@ -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))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment