From 02856ea491a11076e293af3ec8c1d35740bcb551 Mon Sep 17 00:00:00 2001 From: Simon Marlow Date: Thu, 24 May 2007 13:54:56 +0000 Subject: [PATCH] add a rule for creating makefiles as /CabalMakefile Not done by default yet, but useful when hacking on libraries. --- libraries/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libraries/Makefile b/libraries/Makefile index a76739e..5311d55 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)) -- 1.7.10.4