--- gforth/Makedist.in 2008/07/15 16:11:49 1.28 +++ gforth/Makedist.in 2008/07/15 21:54:43 1.29 @@ -23,6 +23,8 @@ include Makefile #!! redundancy with engine/Makefile.in DOBJECTS=engine/*.o +PRECISE=kernel/version.fs kernl16b.fi kernl16l.fi kernl32b.fi kernl32l.fi kernl64b.fi kernl64l.fi + #stuff in a binonly distribution BINONLYDIST = config.status Makefile Makedist \ $(ENGINES) $(ENGINES_FAST) \ @@ -30,10 +32,12 @@ BINONLYDIST = config.status Makefile Mak engine/gforth$(EXE) engine/gforth-fast$(EXE) \ engine/gforth-ditc$(EXE) engine/gforth-itc$(EXE) \ $(addprefix engine/,$(PROFEXES)) \ - stamp-h kernel/version.fs build-ec INSTALL.BINDIST + stamp-h build-ec INSTALL.BINDIST #use dist targets only when srcdir=. ddist: $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) + echo $(VERSION) > version + $(MAKE) $(PRECISE) -$(RMTREE) gforth-$(VERSION) mkdir gforth-$(VERSION) $(TAR) $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) | \ @@ -43,6 +47,8 @@ ddist: $(SOURCES) $(FORTH_GEN0) @KERNEL #use dist targets only when srcdir=. ddosdist: $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) + echo $(VERSION) > version + $(MAKE) $(PRECISE) -$(RMTREE) gforth.$(DOSVERSION) mkdir gforth.$(DOSVERSION) $(TAR) $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) | \ @@ -57,6 +63,8 @@ ddosdist: $(SOURCES) $(FORTH_GEN0) @KERN #A source distribution contains only the things needed to install gforth, #without the documents. dsrcdist: $(SOURCES) $(FORTH_GEN0) @KERNEL@ + echo $(VERSION) > version + $(MAKE) $(PRECISE) -$(RMTREE) gforth-$(VERSION) mkdir gforth-$(VERSION) $(TAR) $(SOURCES) $(FORTH_GEN0) @KERNEL@ | \ @@ -65,6 +73,7 @@ dsrcdist: $(SOURCES) $(FORTH_GEN0) @KERN -$(RMTREE) gforth-$(VERSION) dsrconlydist: $(SOURCES) + echo $(VERSION) > version -$(RMTREE) gforth-$(VERSION) mkdir gforth-$(VERSION) $(TAR) $(SOURCES) | \ @@ -75,6 +84,8 @@ dsrconlydist: $(SOURCES) #A document distribution contains only the documents, which can be created #with MAKE. ddocdist: $(DOCDIST) + echo $(VERSION) > version + $(MAKE) $(PRECISE) -$(RMTREE) gforth-$(VERSION) mkdir gforth-$(VERSION) $(TAR) $(DOCDIST) | (cd gforth-$(VERSION); tar xf -) @@ -82,12 +93,16 @@ ddocdist: $(DOCDIST) -$(RMTREE) gforth-$(VERSION) dhtmldist: html + echo $(VERSION) > version + $(MAKE) $(PRECISE) $(TAR) html|gzip -9 >gforth-html-$(VERSION).tar.gz #a binary distribution contains the complete source distribution, # the objects, the executable and the links. the objects are there for making # make happy. dbindist: $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) $(BINONLYDIST) + echo $(VERSION) > version + $(MAKE) $(PRECISE) -$(RMTREE) gforth-$(VERSION) mkdir gforth-$(VERSION) $(TAR) $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) $(BINONLYDIST) | (cd gforth-$(VERSION); tar xf -) @@ -96,7 +111,7 @@ dbindist: $(SOURCES) $(FORTH_GEN0) @KERN #All file names in a binary distribution distfiles: - @echo $(SOURCES) kernel/version.fs machpc.fs $(FORTH_GEN0) compat/strcomp.fs gforthmi @KERNEL@ $(DOCDIST) $(BINONLYDIST) + @echo $(SOURCES) $(PRECISE) machpc.fs $(FORTH_GEN0) compat/strcomp.fs gforthmi @KERNEL@ $(DOCDIST) $(BINONLYDIST) #makes a package with only the stuff not present in the source #package. For installation the source package is still needed! @@ -106,6 +121,8 @@ distfiles: #then just has to unpack the source and his favourite binonly into the #same directory and has a full binary distribution. dbinonlydist: $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) $(BINONLYDIST) + echo $(VERSION) > version + $(MAKE) $(PRECISE) -$(RMTREE) gforth-$(VERSION) mkdir gforth-$(VERSION) $(TAR) $(BINONLYDIST) | (cd gforth-$(VERSION); tar xf -)