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

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_STAMP_EXTRAS).% \ ...@@ -200,6 +200,13 @@ build.library.%: stamp/$(CONFIGURE_STAMP_EXTRAS).% \
$(addprefix --ghc-option=,$(GhcLibHcOpts)) $(addprefix --ghc-option=,$(GhcLibHcOpts))
ifBuildable/ifBuildable $* setup/Setup register --inplace ifBuildable/ifBuildable $* setup/Setup register --inplace
$(foreach SUBDIR,$(SUBDIRS),$(SUBDIR)/CabalMakefile):\
%/CabalMakefile: stamp/$(CONFIGURE_STAMP_EXTRAS).% \
%/setup/Setup ifBuildable/ifBuildable
$(RM) $*/CabalMakefile
ifBuildable/ifBuildable $* setup/Setup makefile -f CabalMakefile \
$(addprefix --ghc-option=,$(GhcLibHcOpts))
.PHONY: doc .PHONY: doc
DOC_SUBDIRS = $(filter-out haskell98,$(SUBDIRS)) DOC_SUBDIRS = $(filter-out haskell98,$(SUBDIRS))
Supports Markdown
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