X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=Makefile;h=b03289b105f31496abc12ae01055f549399d6acd;hp=b8c149853faaceb53ea2dbc33ab2de03d9b9caaa;hb=06decfcd62d1ca9069cd4707115ecb92bea39064;hpb=e975c8f09ac8d85059a4b42cf56ebe036aa95dc7 diff --git a/Makefile b/Makefile index b8c1498..b03289b 100644 --- a/Makefile +++ b/Makefile @@ -66,6 +66,11 @@ 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 : @@ -417,7 +422,7 @@ SRC_DIST_DIRS += mk docs distrib $(filter-out docs distrib,$(SUBDIRS)) SRC_DIST_FILES += \ configure.ac config.guess config.sub configure \ aclocal.m4 README ANNOUNCE HACKING LICENSE Makefile install-sh \ - ghc.spec.in + ghc.spec.in VERSION # ----------------------------------------------------------------------------- # Source distributions @@ -506,6 +511,9 @@ DIST_CLEAN_FILES += config.cache config.status mk/config.h mk/stamp-h \ # don't clean config.mk: it's needed when cleaning stuff later on LATE_DIST_CLEAN_FILES += mk/config.mk +# VERSION is shipped in a source dist +MAINTAINER_CLEAN_FILES += VERSION + extraclean:: $(RM) -rf autom4te.cache