--- gforth/Makedist.in 2007/12/31 18:40:23 1.25 +++ gforth/Makedist.in 2008/07/15 21:54:43 1.29 @@ -1,7 +1,7 @@ #make dist targets (workaround for broken makes) #use GNU make if your make does not grok this. -#Copyright (C) 1995,1996,1997,1998,2000,2003,2006 Free Software Foundation, Inc. +#Copyright (C) 1995,1996,1997,1998,2000,2003,2006,2007,2008 Free Software Foundation, Inc. #This file is part of Gforth. @@ -21,7 +21,9 @@ include Makefile #!! redundancy with engine/Makefile.in -DOBJECTS=$(addprefix engine/,io.o signals.o support.o @LIBOBJS@ engine.o engine2.o main.o engine-fast.o engine-fast2.o main-fast.o engine-ditc.o main-ditc.o engine-itc.o main-itc.o $(PROFOBJS)) +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 \ @@ -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 -)