X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=Makefile;h=b03289b105f31496abc12ae01055f549399d6acd;hb=eeaa039982364fb658d4e6824e078c553ba8c748;hp=b8c149853faaceb53ea2dbc33ab2de03d9b9caaa;hpb=14df4276ef4480afd6f911f90f587257019bf4bc;p=ghc-hetmet.git 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