version 1.29, 2008/07/15 21:54:43
|
version 1.35, 2012/03/19 21:51:38
|
Line 1
|
Line 1
|
#make dist targets (workaround for broken makes) |
#make dist targets (workaround for broken makes) |
#use GNU make if your make does not grok this. |
#use GNU make if your make does not grok this. |
|
|
#Copyright (C) 1995,1996,1997,1998,2000,2003,2006,2007,2008 Free Software Foundation, Inc. |
#Copyright (C) 1995,1996,1997,1998,2000,2003,2006,2007,2008,2010,2011 Free Software Foundation, Inc. |
|
|
#This file is part of Gforth. |
#This file is part of Gforth. |
|
|
Line 23 include Makefile
|
Line 23 include Makefile
|
#!! redundancy with engine/Makefile.in |
#!! redundancy with engine/Makefile.in |
DOBJECTS=engine/*.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 |
#stuff in a binonly distribution |
BINONLYDIST = config.status Makefile Makedist \ |
BINONLYDIST = config.status Makefile Makedist \ |
$(ENGINES) $(ENGINES_FAST) \ |
$(ENGINES) $(ENGINES_FAST) \ |
$(DOBJECTS) engine/config.h engine/Makefile \ |
$(DOBJECTS) engine/config.h engine/Makefile \ |
engine/gforth$(EXE) engine/gforth-fast$(EXE) \ |
$(wildcard engine/gforth*$(EXE)) \ |
engine/gforth-ditc$(EXE) engine/gforth-itc$(EXE) \ |
stamp-h kernel/version.fs envos.fs build-ec INSTALL.BINDIST |
$(addprefix engine/,$(PROFEXES)) \ |
|
stamp-h build-ec INSTALL.BINDIST |
|
|
|
#use dist targets only when srcdir=. |
#use dist targets only when srcdir=. |
ddist: $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) |
ddist: $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) |
echo $(VERSION) > version |
|
$(MAKE) $(PRECISE) |
|
-$(RMTREE) gforth-$(VERSION) |
-$(RMTREE) gforth-$(VERSION) |
mkdir gforth-$(VERSION) |
mkdir gforth-$(VERSION) |
$(TAR) $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) | \ |
$(TAR) $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) | \ |
Line 47 ddist: $(SOURCES) $(FORTH_GEN0) @KERNEL
|
Line 41 ddist: $(SOURCES) $(FORTH_GEN0) @KERNEL
|
|
|
#use dist targets only when srcdir=. |
#use dist targets only when srcdir=. |
ddosdist: $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) |
ddosdist: $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) |
echo $(VERSION) > version |
|
$(MAKE) $(PRECISE) |
|
-$(RMTREE) gforth.$(DOSVERSION) |
-$(RMTREE) gforth.$(DOSVERSION) |
mkdir gforth.$(DOSVERSION) |
mkdir gforth.$(DOSVERSION) |
$(TAR) $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) | \ |
$(TAR) $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) | \ |
Line 63 ddosdist: $(SOURCES) $(FORTH_GEN0) @KERN
|
Line 55 ddosdist: $(SOURCES) $(FORTH_GEN0) @KERN
|
#A source distribution contains only the things needed to install gforth, |
#A source distribution contains only the things needed to install gforth, |
#without the documents. |
#without the documents. |
dsrcdist: $(SOURCES) $(FORTH_GEN0) @KERNEL@ |
dsrcdist: $(SOURCES) $(FORTH_GEN0) @KERNEL@ |
echo $(VERSION) > version |
|
$(MAKE) $(PRECISE) |
|
-$(RMTREE) gforth-$(VERSION) |
-$(RMTREE) gforth-$(VERSION) |
mkdir gforth-$(VERSION) |
mkdir gforth-$(VERSION) |
$(TAR) $(SOURCES) $(FORTH_GEN0) @KERNEL@ | \ |
$(TAR) $(SOURCES) $(FORTH_GEN0) @KERNEL@ | \ |
Line 73 dsrcdist: $(SOURCES) $(FORTH_GEN0) @KERN
|
Line 63 dsrcdist: $(SOURCES) $(FORTH_GEN0) @KERN
|
-$(RMTREE) gforth-$(VERSION) |
-$(RMTREE) gforth-$(VERSION) |
|
|
dsrconlydist: $(SOURCES) |
dsrconlydist: $(SOURCES) |
echo $(VERSION) > version |
|
-$(RMTREE) gforth-$(VERSION) |
-$(RMTREE) gforth-$(VERSION) |
mkdir gforth-$(VERSION) |
mkdir gforth-$(VERSION) |
$(TAR) $(SOURCES) | \ |
$(TAR) $(SOURCES) | \ |
Line 84 dsrconlydist: $(SOURCES)
|
Line 73 dsrconlydist: $(SOURCES)
|
#A document distribution contains only the documents, which can be created |
#A document distribution contains only the documents, which can be created |
#with MAKE. |
#with MAKE. |
ddocdist: $(DOCDIST) |
ddocdist: $(DOCDIST) |
echo $(VERSION) > version |
|
$(MAKE) $(PRECISE) |
|
-$(RMTREE) gforth-$(VERSION) |
-$(RMTREE) gforth-$(VERSION) |
mkdir gforth-$(VERSION) |
mkdir gforth-$(VERSION) |
$(TAR) $(DOCDIST) | (cd gforth-$(VERSION); tar xf -) |
$(TAR) $(DOCDIST) | (cd gforth-$(VERSION); tar xf -) |
Line 93 ddocdist: $(DOCDIST)
|
Line 80 ddocdist: $(DOCDIST)
|
-$(RMTREE) gforth-$(VERSION) |
-$(RMTREE) gforth-$(VERSION) |
|
|
dhtmldist: html |
dhtmldist: html |
echo $(VERSION) > version |
|
$(MAKE) $(PRECISE) |
|
$(TAR) html|gzip -9 >gforth-html-$(VERSION).tar.gz |
$(TAR) html|gzip -9 >gforth-html-$(VERSION).tar.gz |
|
|
#a binary distribution contains the complete source distribution, |
#a binary distribution contains the complete source distribution, |
# the objects, the executable and the links. the objects are there for making |
# the objects, the executable and the links. the objects are there for making |
# make happy. |
# make happy. |
dbindist: $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) $(BINONLYDIST) |
dbindist: $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) $(BINONLYDIST) |
echo $(VERSION) > version |
|
$(MAKE) $(PRECISE) |
|
-$(RMTREE) gforth-$(VERSION) |
-$(RMTREE) gforth-$(VERSION) |
mkdir gforth-$(VERSION) |
mkdir gforth-$(VERSION) |
$(TAR) $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) $(BINONLYDIST) | (cd gforth-$(VERSION); tar xf -) |
$(TAR) $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) $(BINONLYDIST) | (cd gforth-$(VERSION); tar xf -) |
$(STRIP) gforth-$(VERSION){,/engine}/gforth{,-fast,-ditc,-itc}$(EXE) |
-$(STRIP) gforth-$(VERSION){,/engine}/gforth*$(EXE) |
$(TAR) gforth-$(VERSION)|gzip -9 >gforth-$(VERSION).bin.@host@.tar.gz |
$(TAR) gforth-$(VERSION)|gzip -9 >gforth-$(VERSION).bin.@host@.tar.gz |
|
|
#All file names in a binary distribution |
#All file names in a binary distribution |
Line 121 distfiles:
|
Line 104 distfiles:
|
#then just has to unpack the source and his favourite binonly into the |
#then just has to unpack the source and his favourite binonly into the |
#same directory and has a full binary distribution. |
#same directory and has a full binary distribution. |
dbinonlydist: $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) $(BINONLYDIST) |
dbinonlydist: $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) $(BINONLYDIST) |
echo $(VERSION) > version |
|
$(MAKE) $(PRECISE) |
|
-$(RMTREE) gforth-$(VERSION) |
-$(RMTREE) gforth-$(VERSION) |
mkdir gforth-$(VERSION) |
mkdir gforth-$(VERSION) |
$(TAR) $(BINONLYDIST) | (cd gforth-$(VERSION); tar xf -) |
$(TAR) $(BINONLYDIST) | (cd gforth-$(VERSION); tar xf -) |
$(STRIP) gforth-$(VERSION)/gforth$(EXE) |
$(STRIP) gforth-$(VERSION)/gforth$(EXE) |
$(TAR) gforth-$(VERSION)|gzip -9 >gforth-$(VERSION).binonly.@host@.tar.gz |
$(TAR) gforth-$(VERSION)|gzip -9 >gforth-$(VERSION).binonly.@host@.tar.gz |
|
|
|
ddebdist: $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) $(BINONLYDIST) debian.control |
|
-rm -rf debian |
|
mkdir debian |
|
make package=$$PWD/debian install |
|
mkdir debian/DEBIAN |
|
(cd debian; find . -name '*' -exec md5sum '{}' ';') >debian/DEBIAN/md5sums |
|
cp debian.control debian/DEBIAN/control |
|
dpkg-deb --build debian |
|
mv debian.deb gforth_$(VERSION)_@host_cpu@.deb |
|
rm -rf md5sums debian |