Annotation of gforth/Makedist.in, revision 1.29

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: 
1.29    ! pazsan     26: PRECISE=kernel/version.fs kernl16b.fi kernl16l.fi kernl32b.fi kernl32l.fi kernl64b.fi kernl64l.fi
        !            27: 
1.3       anton      28: #stuff in a binonly distribution 
1.7       pazsan     29: BINONLYDIST = config.status Makefile Makedist \
1.21      pazsan     30:        $(ENGINES) $(ENGINES_FAST) \
1.3       anton      31:        $(DOBJECTS) engine/config.h engine/Makefile \
1.15      anton      32:        engine/gforth$(EXE) engine/gforth-fast$(EXE) \
                     33:         engine/gforth-ditc$(EXE) engine/gforth-itc$(EXE) \
1.20      anton      34:        $(addprefix engine/,$(PROFEXES)) \
1.29    ! pazsan     35:        stamp-h build-ec INSTALL.BINDIST
1.3       anton      36: 
1.1       pazsan     37: #use dist targets only when srcdir=.
1.2       anton      38: ddist:         $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST)
1.29    ! pazsan     39:                echo $(VERSION) > version
        !            40:                $(MAKE) $(PRECISE)
1.1       pazsan     41:                -$(RMTREE) gforth-$(VERSION)
                     42:                mkdir gforth-$(VERSION)
                     43:                $(TAR) $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) | \
                     44:                        (cd gforth-$(VERSION); tar xf -)
                     45:                $(TAR) gforth-$(VERSION)|gzip -9 >gforth-$(VERSION).tar.gz
                     46:                -$(RMTREE) gforth-$(VERSION)
                     47: 
                     48: #use dist targets only when srcdir=.
1.2       anton      49: ddosdist:      $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST)
1.29    ! pazsan     50:                echo $(VERSION) > version
        !            51:                $(MAKE) $(PRECISE)
1.1       pazsan     52:                -$(RMTREE) gforth.$(DOSVERSION)
                     53:                mkdir gforth.$(DOSVERSION)
                     54:                $(TAR) $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) | \
                     55:                        (cd gforth.$(DOSVERSION); tar xf -)
                     56:                $(MV) gforth.$(DOSVERSION)/engine/strsignal.c gforth.$(DOSVERSION)/engine/strsig.c
1.7       pazsan     57:                for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14; do \
1.1       pazsan     58:                        $(MV) gforth.$(DOSVERSION)/doc/gforth.info-$$i gforth.$(DOSVERSION)/doc/gforth.i$$i; \
                     59:                done
                     60:                zip -r9 gf$(DOSVERSION)dos.zip gforth.$(DOSVERSION)/*
                     61:                -$(RMTREE) gforth.$(DOSVERSION)
                     62: 
                     63: #A source distribution contains only the things needed to install gforth,
                     64: #without the documents.
1.2       anton      65: dsrcdist:      $(SOURCES) $(FORTH_GEN0) @KERNEL@
1.29    ! pazsan     66:                echo $(VERSION) > version
        !            67:                $(MAKE) $(PRECISE)
1.1       pazsan     68:                -$(RMTREE) gforth-$(VERSION)
                     69:                mkdir gforth-$(VERSION)
                     70:                $(TAR) $(SOURCES) $(FORTH_GEN0) @KERNEL@ | \
                     71:                        (cd gforth-$(VERSION); tar xf -)
                     72:                $(TAR) gforth-$(VERSION)|gzip -9 >gforth-src-$(VERSION).tar.gz
                     73:                -$(RMTREE) gforth-$(VERSION)
                     74: 
1.2       anton      75: dsrconlydist:  $(SOURCES)
1.29    ! pazsan     76:                echo $(VERSION) > version
1.1       pazsan     77:                -$(RMTREE) gforth-$(VERSION)
                     78:                mkdir gforth-$(VERSION)
                     79:                $(TAR) $(SOURCES) | \
                     80:                        (cd gforth-$(VERSION); tar xf -)
                     81:                $(TAR) gforth-$(VERSION)|gzip -9 >gforth-srconly-$(VERSION).tar.gz
                     82:                -$(RMTREE) gforth-$(VERSION)
                     83: 
                     84: #A document distribution contains only the documents, which can be created
                     85: #with MAKE.
1.2       anton      86: ddocdist:      $(DOCDIST)
1.29    ! pazsan     87:                echo $(VERSION) > version
        !            88:                $(MAKE) $(PRECISE)
1.1       pazsan     89:                -$(RMTREE) gforth-$(VERSION)
                     90:                mkdir gforth-$(VERSION)
                     91:                $(TAR) $(DOCDIST) | (cd gforth-$(VERSION); tar xf -)
                     92:                $(TAR) gforth-$(VERSION)|gzip -9 >gforth-doc-$(VERSION).tar.gz
                     93:                -$(RMTREE) gforth-$(VERSION)
                     94: 
1.2       anton      95: dhtmldist:     html
1.29    ! pazsan     96:                echo $(VERSION) > version
        !            97:                $(MAKE) $(PRECISE)
1.1       pazsan     98:                $(TAR) html|gzip -9 >gforth-html-$(VERSION).tar.gz
                     99: 
                    100: #a binary distribution contains the complete source distribution,
                    101: # the objects, the executable and the links. the objects are there for making
                    102: # make happy.
1.2       anton     103: dbindist:      $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) $(BINONLYDIST)
1.29    ! pazsan    104:                echo $(VERSION) > version
        !           105:                $(MAKE) $(PRECISE)
1.1       pazsan    106:                -$(RMTREE) gforth-$(VERSION)
                    107:                mkdir gforth-$(VERSION)
                    108:                $(TAR) $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) $(BINONLYDIST) | (cd gforth-$(VERSION); tar xf -)
1.16      anton     109:                $(STRIP) gforth-$(VERSION){,/engine}/gforth{,-fast,-ditc,-itc}$(EXE)
1.10      anton     110:                $(TAR) gforth-$(VERSION)|gzip -9 >gforth-$(VERSION).bin.@host@.tar.gz
1.1       pazsan    111: 
1.11      pazsan    112: #All file names in a binary distribution
                    113: distfiles:
1.29    ! pazsan    114:                @echo $(SOURCES) $(PRECISE) machpc.fs $(FORTH_GEN0) compat/strcomp.fs gforthmi @KERNEL@ $(DOCDIST) $(BINONLYDIST)
1.11      pazsan    115: 
1.1       pazsan    116: #makes a package with only the stuff not present in the source
                    117: #package. For installation the source package is still needed!
                    118: #This is useful if you want to distribute many binary versions in
                    119: #little space (e.g., on floppy disk): Put the source package and
                    120: #all the binonly packages you are interested in on the disk. The user
                    121: #then just has to unpack the source and his favourite binonly into the
                    122: #same directory and has a full binary distribution.
1.2       anton     123: dbinonlydist:  $(SOURCES) $(FORTH_GEN0) @KERNEL@ $(DOCDIST) $(BINONLYDIST)
1.29    ! pazsan    124:                echo $(VERSION) > version
        !           125:                $(MAKE) $(PRECISE)
1.1       pazsan    126:                -$(RMTREE) gforth-$(VERSION)
                    127:                mkdir gforth-$(VERSION)
                    128:                $(TAR) $(BINONLYDIST) | (cd gforth-$(VERSION); tar xf -)
1.16      anton     129:                $(STRIP) gforth-$(VERSION)/gforth$(EXE)
1.10      anton     130:                $(TAR) gforth-$(VERSION)|gzip -9 >gforth-$(VERSION).binonly.@host@.tar.gz

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>