X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=libraries%2FMakefile;h=5302c60c1e2f0acd78556cc81774b5646dd3d642;hb=b132a9d502ee844369e4d7c66adc38287e02a48f;hp=a76739ee87e4372bcda13910307101e92239a67d;hpb=d11e18f6a7716bf716d25893de61daf3b096abb1;p=ghc-hetmet.git diff --git a/libraries/Makefile b/libraries/Makefile index a76739e..5302c60 100644 --- a/libraries/Makefile +++ b/libraries/Makefile @@ -13,6 +13,12 @@ # or the following is equivalent: # # make rebuild.library. +# +# To add a new library to the tree, do +# +# darcs get http://darcs.haskell.org/packages/foo +# [ -e foo/configure.ac ] && ( cd foo && autoreconf ) +# make build.library.foo .PHONY: default_target @@ -200,6 +206,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))