Annotation of gforth/Makedist.in, revision 1.28
1.2 anton 1: #make dist targets (workaround for broken makes)
2: #use GNU make if your make does not grok this.
1.1 pazsan 3:
1.28 ! anton 4: #Copyright (C) 1995,1996,1997,1998,2000,2003,2006,2007,2008 Free Software Foundation, Inc.
1.1 pazsan 5:
1.2 anton 6: #This file is part of Gforth.
1.1 pazsan 7:
1.2 anton 8: #Gforth is free software; you can redistribute it and/or
9: #modify it under the terms of the GNU General Public License
1.25 anton 10: #as published by the Free Software Foundation, either version 3
1.2 anton 11: #of the License, or (at your option) any later version.
1.1 pazsan 12:
1.2 anton 13: #This program is distributed in the hope that it will be useful,
14: #but WITHOUT ANY WARRANTY; without even the implied warranty of
15: #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.#See the
16: #GNU General Public License for more details.
1.1 pazsan 17:
1.2 anton 18: #You should have received a copy of the GNU General Public License
1.25 anton 19: #along with this program. If not, see http://www.gnu.org/licenses/.
1.2 anton 20:
21: include Makefile
1.1 pazsan 22:
1.3 anton 23: #!! redundancy with engine/Makefile.in
1.27 pazsan 24: DOBJECTS=engine/*.o
1.3 anton 25:
26: #stuff in a binonly distribution
1.7 pazsan 27: BINONLYDIST = config.status Makefile Makedist \
1.21 pazsan 28: $(ENGINES) $(ENGINES_FAST) \
1.3 anton 29: $(DOBJECTS) engine/config.h engine/Makefile \
1.15 anton 30: engine/gforth$(EXE) engine/gforth-fast$(EXE) \
31: engine/gforth-ditc$(EXE) engine/gforth-itc$(EXE) \
1.20 anton 32: $(addprefix engine/,$(PROFEXES)) \
1.22 pazsan 33: stamp-h kernel/version.fs build-ec INSTALL.BINDIST
1.3 anton 34:
1.1 pazsan 35: #use dist targets only when srcdir=.
1.2 anton 36: ddist: $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST)
1.1 pazsan 37: -$(RMTREE) gforth-$(VERSION)
38: mkdir gforth-$(VERSION)
39: $(TAR) $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) | \
40: (cd gforth-$(VERSION); tar xf -)
41: $(TAR) gforth-$(VERSION)|gzip -9 >gforth-$(VERSION).tar.gz
42: -$(RMTREE) gforth-$(VERSION)
43:
44: #use dist targets only when srcdir=.
1.2 anton 45: ddosdist: $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST)
1.1 pazsan 46: -$(RMTREE) gforth.$(DOSVERSION)
47: mkdir gforth.$(DOSVERSION)
48: $(TAR) $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) | \
49: (cd gforth.$(DOSVERSION); tar xf -)
50: $(MV) gforth.$(DOSVERSION)/engine/strsignal.c gforth.$(DOSVERSION)/engine/strsig.c
1.7 pazsan 51: for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14; do \
1.1 pazsan 52: $(MV) gforth.$(DOSVERSION)/doc/gforth.info-$$i gforth.$(DOSVERSION)/doc/gforth.i$$i; \
53: done
54: zip -r9 gf$(DOSVERSION)dos.zip gforth.$(DOSVERSION)/*
55: -$(RMTREE) gforth.$(DOSVERSION)
56:
57: #A source distribution contains only the things needed to install gforth,
58: #without the documents.
1.2 anton 59: dsrcdist: $(SOURCES) $(FORTH_GEN0) @KERNEL@
1.1 pazsan 60: -$(RMTREE) gforth-$(VERSION)
61: mkdir gforth-$(VERSION)
62: $(TAR) $(SOURCES) $(FORTH_GEN0) @KERNEL@ | \
63: (cd gforth-$(VERSION); tar xf -)
64: $(TAR) gforth-$(VERSION)|gzip -9 >gforth-src-$(VERSION).tar.gz
65: -$(RMTREE) gforth-$(VERSION)
66:
1.2 anton 67: dsrconlydist: $(SOURCES)
1.1 pazsan 68: -$(RMTREE) gforth-$(VERSION)
69: mkdir gforth-$(VERSION)
70: $(TAR) $(SOURCES) | \
71: (cd gforth-$(VERSION); tar xf -)
72: $(TAR) gforth-$(VERSION)|gzip -9 >gforth-srconly-$(VERSION).tar.gz
73: -$(RMTREE) gforth-$(VERSION)
74:
75: #A document distribution contains only the documents, which can be created
76: #with MAKE.
1.2 anton 77: ddocdist: $(DOCDIST)
1.1 pazsan 78: -$(RMTREE) gforth-$(VERSION)
79: mkdir gforth-$(VERSION)
80: $(TAR) $(DOCDIST) | (cd gforth-$(VERSION); tar xf -)
81: $(TAR) gforth-$(VERSION)|gzip -9 >gforth-doc-$(VERSION).tar.gz
82: -$(RMTREE) gforth-$(VERSION)
83:
1.2 anton 84: dhtmldist: html
1.1 pazsan 85: $(TAR) html|gzip -9 >gforth-html-$(VERSION).tar.gz
86:
87: #a binary distribution contains the complete source distribution,
88: # the objects, the executable and the links. the objects are there for making
89: # make happy.
1.2 anton 90: dbindist: $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) $(BINONLYDIST)
1.1 pazsan 91: -$(RMTREE) gforth-$(VERSION)
92: mkdir gforth-$(VERSION)
93: $(TAR) $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) $(BINONLYDIST) | (cd gforth-$(VERSION); tar xf -)
1.16 anton 94: $(STRIP) gforth-$(VERSION){,/engine}/gforth{,-fast,-ditc,-itc}$(EXE)
1.10 anton 95: $(TAR) gforth-$(VERSION)|gzip -9 >gforth-$(VERSION).bin.@host@.tar.gz
1.1 pazsan 96:
1.11 pazsan 97: #All file names in a binary distribution
98: distfiles:
1.23 pazsan 99: @echo $(SOURCES) kernel/version.fs machpc.fs $(FORTH_GEN0) compat/strcomp.fs gforthmi @KERNEL@ $(DOCDIST) $(BINONLYDIST)
1.11 pazsan 100:
1.1 pazsan 101: #makes a package with only the stuff not present in the source
102: #package. For installation the source package is still needed!
103: #This is useful if you want to distribute many binary versions in
104: #little space (e.g., on floppy disk): Put the source package and
105: #all the binonly packages you are interested in on the disk. The user
106: #then just has to unpack the source and his favourite binonly into the
107: #same directory and has a full binary distribution.
1.2 anton 108: dbinonlydist: $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) $(BINONLYDIST)
1.1 pazsan 109: -$(RMTREE) gforth-$(VERSION)
110: mkdir gforth-$(VERSION)
111: $(TAR) $(BINONLYDIST) | (cd gforth-$(VERSION); tar xf -)
1.16 anton 112: $(STRIP) gforth-$(VERSION)/gforth$(EXE)
1.10 anton 113: $(TAR) gforth-$(VERSION)|gzip -9 >gforth-$(VERSION).binonly.@host@.tar.gz
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>