[gforth] / gforth / Makedist.in  

gforth: gforth/Makedist.in


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.2 #Copyright (C) 1995,1996,1997,1998 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 :     #Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 :    
22 :     include Makefile
23 : pazsan 1.1
24 : anton 1.3 #!! redundancy with engine/Makefile.in
25 :     DOBJECTS=$(addprefix engine/,io.o memcmpc.o @LIBOBJS@ engine.o main.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 : pazsan 1.1 #use dist targets only when srcdir=.
35 : anton 1.2 ddist: $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST)
36 : pazsan 1.1 -$(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 : anton 1.2 ddosdist: $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST)
45 : pazsan 1.1 -$(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 : anton 1.2 dsrcdist: $(SOURCES) $(FORTH_GEN0) @KERNEL@
59 : pazsan 1.1 -$(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 : anton 1.2 dsrconlydist: $(SOURCES)
67 : pazsan 1.1 -$(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 : anton 1.2 ddocdist: $(DOCDIST)
77 : pazsan 1.1 -$(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 : anton 1.2 dhtmldist: html
84 : pazsan 1.1 $(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 : anton 1.2 dbindist: $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) $(BINONLYDIST)
90 : pazsan 1.1 -$(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 : anton 1.2 dbinonlydist: $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) $(BINONLYDIST)
104 : pazsan 1.1 -$(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

CVS Admin

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help