From: Simon Marlow Date: Thu, 8 Feb 2007 12:15:55 +0000 (+0000) Subject: make VERSION a dependency of dist X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=f66972b52f6927f143d6f5b4ed4bdd1e3f2b6eb6 make VERSION a dependency of dist --- diff --git a/Makefile b/Makefile index c81dc39..d4b93cc 100644 --- a/Makefile +++ b/Makefile @@ -66,11 +66,6 @@ endif SUBDIRS = $(SUBDIRS_NOLIB) libraries -VERSION : - echo $(ProjectVersion) >VERSION - -all :: VERSION - # Sanity check that all the core libraries are in the tree, to catch # failure to run darcs-all. check-packages : @@ -442,6 +437,11 @@ EXTRA_LIBS=$(patsubst %, $(SRC_DIST_NAME)/libraries/%, $(shell cat libraries/ext SRC_DIST_TARBALL = ghc-$(ProjectVersion)-src.tar.bz2 SRC_DIST_EXTRALIBS_TARBALL = ghc-$(ProjectVersion)-src-extralibs.tar.bz2 +VERSION : + echo $(ProjectVersion) >VERSION + +dist :: VERSION + dist :: $(RM) -rf $(SRC_DIST_DIR) $(RM) $(SRC_DIST_NAME).tar.gz