--- gforth/Makedist.in 1999/02/28 08:37:43 1.5 +++ gforth/Makedist.in 2008/07/15 21:54:43 1.29 @@ -1,13 +1,13 @@ #make dist targets (workaround for broken makes) #use GNU make if your make does not grok this. -#Copyright (C) 1995,1996,1997,1998 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. #Gforth is free software; you can redistribute it and/or #modify it under the terms of the GNU General Public License -#as published by the Free Software Foundation; either version 2 +#as published by the Free Software Foundation, either version 3 #of the License, or (at your option) any later version. #This program is distributed in the hope that it will be useful, @@ -16,23 +16,28 @@ #GNU General Public License for more details. #You should have received a copy of the GNU General Public License -#along with this program; if not, write to the Free Software -#Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +#along with this program. If not, see http://www.gnu.org/licenses/. include Makefile #!! redundancy with engine/Makefile.in -DOBJECTS=$(addprefix engine/,io.o signal.o memcmpc.o @LIBOBJS@ engine.o main.o engine-fast.o main-fast.o engine-ditc.o main-ditc.o) +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 gforth$(EXE) gforth-ditc$(EXE) \ +BINONLYDIST = config.status Makefile Makedist \ + $(ENGINES) $(ENGINES_FAST) \ $(DOBJECTS) engine/config.h engine/Makefile \ - engine/gforth$(EXE) engine/gforth-ditc$(EXE) \ - stamp-h kernel/version.fs \ - INSTALL.BINDIST + engine/gforth$(EXE) engine/gforth-fast$(EXE) \ + engine/gforth-ditc$(EXE) engine/gforth-itc$(EXE) \ + $(addprefix engine/,$(PROFEXES)) \ + 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) | \ @@ -42,12 +47,14 @@ 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) | \ (cd gforth.$(DOSVERSION); tar xf -) $(MV) gforth.$(DOSVERSION)/engine/strsignal.c gforth.$(DOSVERSION)/engine/strsig.c - for i in 1 2 3 4 5 6 7 8; do \ + for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14; do \ $(MV) gforth.$(DOSVERSION)/doc/gforth.info-$$i gforth.$(DOSVERSION)/doc/gforth.i$$i; \ done zip -r9 gf$(DOSVERSION)dos.zip gforth.$(DOSVERSION)/* @@ -56,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@ | \ @@ -64,6 +73,7 @@ dsrcdist: $(SOURCES) $(FORTH_GEN0) @KERN -$(RMTREE) gforth-$(VERSION) dsrconlydist: $(SOURCES) + echo $(VERSION) > version -$(RMTREE) gforth-$(VERSION) mkdir gforth-$(VERSION) $(TAR) $(SOURCES) | \ @@ -74,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 -) @@ -81,17 +93,25 @@ 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 -) - strip gforth-$(VERSION)/gforth - $(TAR) gforth-$(VERSION)|gzip -9 >gforth-$(VERSION)-@host@.tar.gz + $(STRIP) gforth-$(VERSION){,/engine}/gforth{,-fast,-ditc,-itc}$(EXE) + $(TAR) gforth-$(VERSION)|gzip -9 >gforth-$(VERSION).bin.@host@.tar.gz + +#All file names in a binary distribution +distfiles: + @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! @@ -101,8 +121,10 @@ dbindist: $(SOURCES) $(FORTH_GEN0) @KERN #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 -) - strip gforth-$(VERSION)/gforth - $(TAR) gforth-$(VERSION)|gzip -9 >gforth-$(VERSION)-binonly-@host@.tar.gz + $(STRIP) gforth-$(VERSION)/gforth$(EXE) + $(TAR) gforth-$(VERSION)|gzip -9 >gforth-$(VERSION).binonly.@host@.tar.gz