make VERSION a dependency of dist
authorSimon Marlow <simonmar@microsoft.com>
Thu, 8 Feb 2007 12:15:55 +0000 (12:15 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Thu, 8 Feb 2007 12:15:55 +0000 (12:15 +0000)
Makefile

index c81dc39..d4b93cc 100644 (file)
--- 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