1: #make dist targets (workaround for broken makes)
2: #use GNU make if your make does not grok this.
3:
4: #Copyright (C) 1995,1996,1997,1998 Free Software Foundation, Inc.
5:
6: #This file is part of Gforth.
7:
8: #Gforth is free software; you can redistribute it and/or
9: #modify it under the terms of the GNU General Public License
10: #as published by the Free Software Foundation; either version 2
11: #of the License, or (at your option) any later version.
12:
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.
17:
18: #You should have received a copy of the GNU General Public License
19: #along with this program; if not, write to the Free Software
20: #Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21:
22: include Makefile
23:
24: #!! redundancy with engine/Makefile.in
25: DOBJECTS=$(addprefix engine/,io.o memcmpc.o @LIBOBJS@ engine.o main.o engine-fast.o main-fast.o engine-ditc.o main-ditc.o)
26:
27: #stuff in a binonly distribution
28: BINONLYDIST = config.status Makefile Makedist gforth$(EXE) gforth-ditc$(EXE) \
29: $(DOBJECTS) engine/config.h engine/Makefile \
30: engine/gforth$(EXE) engine/gforth-ditc$(EXE) \
31: stamp-h kernel/version.fs \
32: INSTALL.BINDIST
33:
34: #use dist targets only when srcdir=.
35: ddist: $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST)
36: -$(RMTREE) gforth-$(VERSION)
37: mkdir gforth-$(VERSION)
38: $(TAR) $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) | \
39: (cd gforth-$(VERSION); tar xf -)
40: $(TAR) gforth-$(VERSION)|gzip -9 >gforth-$(VERSION).tar.gz
41: -$(RMTREE) gforth-$(VERSION)
42:
43: #use dist targets only when srcdir=.
44: ddosdist: $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST)
45: -$(RMTREE) gforth.$(DOSVERSION)
46: mkdir gforth.$(DOSVERSION)
47: $(TAR) $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) | \
48: (cd gforth.$(DOSVERSION); tar xf -)
49: $(MV) gforth.$(DOSVERSION)/engine/strsignal.c gforth.$(DOSVERSION)/engine/strsig.c
50: for i in 1 2 3 4 5 6 7 8; do \
51: $(MV) gforth.$(DOSVERSION)/doc/gforth.info-$$i gforth.$(DOSVERSION)/doc/gforth.i$$i; \
52: done
53: zip -r9 gf$(DOSVERSION)dos.zip gforth.$(DOSVERSION)/*
54: -$(RMTREE) gforth.$(DOSVERSION)
55:
56: #A source distribution contains only the things needed to install gforth,
57: #without the documents.
58: dsrcdist: $(SOURCES) $(FORTH_GEN0) @KERNEL@
59: -$(RMTREE) gforth-$(VERSION)
60: mkdir gforth-$(VERSION)
61: $(TAR) $(SOURCES) $(FORTH_GEN0) @KERNEL@ | \
62: (cd gforth-$(VERSION); tar xf -)
63: $(TAR) gforth-$(VERSION)|gzip -9 >gforth-src-$(VERSION).tar.gz
64: -$(RMTREE) gforth-$(VERSION)
65:
66: dsrconlydist: $(SOURCES)
67: -$(RMTREE) gforth-$(VERSION)
68: mkdir gforth-$(VERSION)
69: $(TAR) $(SOURCES) | \
70: (cd gforth-$(VERSION); tar xf -)
71: $(TAR) gforth-$(VERSION)|gzip -9 >gforth-srconly-$(VERSION).tar.gz
72: -$(RMTREE) gforth-$(VERSION)
73:
74: #A document distribution contains only the documents, which can be created
75: #with MAKE.
76: ddocdist: $(DOCDIST)
77: -$(RMTREE) gforth-$(VERSION)
78: mkdir gforth-$(VERSION)
79: $(TAR) $(DOCDIST) | (cd gforth-$(VERSION); tar xf -)
80: $(TAR) gforth-$(VERSION)|gzip -9 >gforth-doc-$(VERSION).tar.gz
81: -$(RMTREE) gforth-$(VERSION)
82:
83: dhtmldist: html
84: $(TAR) html|gzip -9 >gforth-html-$(VERSION).tar.gz
85:
86: #a binary distribution contains the complete source distribution,
87: # the objects, the executable and the links. the objects are there for making
88: # make happy.
89: dbindist: $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) $(BINONLYDIST)
90: -$(RMTREE) gforth-$(VERSION)
91: mkdir gforth-$(VERSION)
92: $(TAR) $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) $(BINONLYDIST) | (cd gforth-$(VERSION); tar xf -)
93: strip gforth-$(VERSION)/gforth
94: $(TAR) gforth-$(VERSION)|gzip -9 >gforth-$(VERSION)-@host@.tar.gz
95:
96: #makes a package with only the stuff not present in the source
97: #package. For installation the source package is still needed!
98: #This is useful if you want to distribute many binary versions in
99: #little space (e.g., on floppy disk): Put the source package and
100: #all the binonly packages you are interested in on the disk. The user
101: #then just has to unpack the source and his favourite binonly into the
102: #same directory and has a full binary distribution.
103: dbinonlydist: $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) $(BINONLYDIST)
104: -$(RMTREE) gforth-$(VERSION)
105: mkdir gforth-$(VERSION)
106: $(TAR) $(BINONLYDIST) | (cd gforth-$(VERSION); tar xf -)
107: strip gforth-$(VERSION)/gforth
108: $(TAR) gforth-$(VERSION)|gzip -9 >gforth-$(VERSION)-binonly-@host@.tar.gz
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>