Annotation of gforth/Makedist.in, revision 1.5

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.2       anton       4: #Copyright (C) 1995,1996,1997,1998 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
                     10: #as published by the Free Software Foundation; either version 2
                     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
                     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
1.1       pazsan     23: 
1.3       anton      24: #!! redundancy with engine/Makefile.in
1.5     ! anton      25: DOBJECTS=$(addprefix engine/,io.o signal.o memcmpc.o @LIBOBJS@ engine.o main.o engine-fast.o main-fast.o engine-ditc.o main-ditc.o)
1.3       anton      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: 
1.1       pazsan     34: #use dist targets only when srcdir=.
1.2       anton      35: ddist:         $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST)
1.1       pazsan     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=.
1.2       anton      44: ddosdist:      $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST)
1.1       pazsan     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.
1.2       anton      58: dsrcdist:      $(SOURCES) $(FORTH_GEN0) @KERNEL@
1.1       pazsan     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: 
1.2       anton      66: dsrconlydist:  $(SOURCES)
1.1       pazsan     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.
1.2       anton      76: ddocdist:      $(DOCDIST)
1.1       pazsan     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: 
1.2       anton      83: dhtmldist:     html
1.1       pazsan     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.
1.2       anton      89: dbindist:      $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) $(BINONLYDIST)
1.1       pazsan     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.
1.2       anton     103: dbinonlydist:  $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) $(BINONLYDIST)
1.1       pazsan    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>