Make building binary dists work with cabalised libraries
[ghc-hetmet.git] / libraries / Makefile
index 594de16..2ce5176 100644 (file)
@@ -3,8 +3,12 @@
 
 default_target: build
 
+ifeq "$(IN_BIN_DIST)" "1"
+include ../Makefile-vars
+else
 TOP=.
 include $(TOP)/mk/boilerplate.mk
+endif
 
 SUBDIRS = base filepath haskell98 template-haskell readline \
          regex-base regex-posix regex-compat parsec Cabal
@@ -60,6 +64,11 @@ endif
 
 BOOTSTRAPPING_CABAL = bootstrapping.cabal
 
+.PHONY: subdirs
+
+subdirs:
+       @echo $(SUBDIRS)
+
 .PHONY: boot
 
 boot: $(foreach SUBDIR,$(SUBDIRS),$(SUBDIR)/setup/Setup)