| 1 : |
anton
|
1.2
|
#make dist targets (workaround for broken makes) |
| 2 : |
|
|
#use GNU make if your make does not grok this. |
| 3 : |
pazsan
|
1.1
|
|
| 4 : |
anton
|
1.14
|
#Copyright (C) 1995,1996,1997,1998,2000,2003 Free Software Foundation, Inc. |
| 5 : |
pazsan
|
1.1
|
|
| 6 : |
anton
|
1.2
|
#This file is part of Gforth. |
| 7 : |
pazsan
|
1.1
|
|
| 8 : |
anton
|
1.2
|
#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 : |
pazsan
|
1.1
|
|
| 13 : |
anton
|
1.2
|
#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 : |
pazsan
|
1.1
|
|
| 18 : |
anton
|
1.2
|
#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 : |
anton
|
1.9
|
#Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA. |
| 21 : |
anton
|
1.2
|
|
| 22 : |
|
|
include Makefile |
| 23 : |
pazsan
|
1.1
|
|
| 24 : |
anton
|
1.3
|
#!! redundancy with engine/Makefile.in |
| 25 : |
pazsan
|
1.6
|
DOBJECTS=$(addprefix engine/,io.o signals.o memcmpc.o @LIBOBJS@ engine.o main.o engine-fast.o main-fast.o engine-ditc.o main-ditc.o) |
| 26 : |
anton
|
1.3
|
|
| 27 : |
|
|
#stuff in a binonly distribution |
| 28 : |
pazsan
|
1.7
|
BINONLYDIST = config.status Makefile Makedist \ |
| 29 : |
|
|
gforth$(EXE) gforth-fast$(EXE) gforth-ditc$(EXE) \ |
| 30 : |
anton
|
1.3
|
$(DOBJECTS) engine/config.h engine/Makefile \ |
| 31 : |
pazsan
|
1.7
|
engine/gforth$(EXE) engine/gforth-fast$(EXE) engine/gforth-ditc$(EXE) \ |
| 32 : |
anton
|
1.3
|
stamp-h kernel/version.fs \ |
| 33 : |
|
|
INSTALL.BINDIST |
| 34 : |
|
|
|
| 35 : |
pazsan
|
1.1
|
#use dist targets only when srcdir=. |
| 36 : |
anton
|
1.2
|
ddist: $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) |
| 37 : |
pazsan
|
1.1
|
-$(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=. |
| 45 : |
anton
|
1.2
|
ddosdist: $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) |
| 46 : |
pazsan
|
1.1
|
-$(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 |
| 51 : |
pazsan
|
1.7
|
for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14; do \ |
| 52 : |
pazsan
|
1.1
|
$(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. |
| 59 : |
anton
|
1.2
|
dsrcdist: $(SOURCES) $(FORTH_GEN0) @KERNEL@ |
| 60 : |
pazsan
|
1.1
|
-$(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 : |
|
|
|
| 67 : |
anton
|
1.2
|
dsrconlydist: $(SOURCES) |
| 68 : |
pazsan
|
1.1
|
-$(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. |
| 77 : |
anton
|
1.2
|
ddocdist: $(DOCDIST) |
| 78 : |
pazsan
|
1.1
|
-$(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 : |
|
|
|
| 84 : |
anton
|
1.2
|
dhtmldist: html |
| 85 : |
pazsan
|
1.1
|
$(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. |
| 90 : |
anton
|
1.2
|
dbindist: $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) $(BINONLYDIST) |
| 91 : |
pazsan
|
1.1
|
-$(RMTREE) gforth-$(VERSION) |
| 92 : |
|
|
mkdir gforth-$(VERSION) |
| 93 : |
|
|
$(TAR) $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) $(BINONLYDIST) | (cd gforth-$(VERSION); tar xf -) |
| 94 : |
|
|
strip gforth-$(VERSION)/gforth |
| 95 : |
anton
|
1.10
|
$(TAR) gforth-$(VERSION)|gzip -9 >gforth-$(VERSION).bin.@host@.tar.gz |
| 96 : |
pazsan
|
1.1
|
|
| 97 : |
pazsan
|
1.11
|
#All file names in a binary distribution |
| 98 : |
|
|
distfiles: |
| 99 : |
|
|
@echo $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) $(BINONLYDIST) |
| 100 : |
|
|
|
| 101 : |
pazsan
|
1.1
|
#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. |
| 108 : |
anton
|
1.2
|
dbinonlydist: $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) $(BINONLYDIST) |
| 109 : |
pazsan
|
1.1
|
-$(RMTREE) gforth-$(VERSION) |
| 110 : |
|
|
mkdir gforth-$(VERSION) |
| 111 : |
|
|
$(TAR) $(BINONLYDIST) | (cd gforth-$(VERSION); tar xf -) |
| 112 : |
|
|
strip gforth-$(VERSION)/gforth |
| 113 : |
anton
|
1.10
|
$(TAR) gforth-$(VERSION)|gzip -9 >gforth-$(VERSION).binonly.@host@.tar.gz |