home *** CD-ROM | disk | FTP | other *** search
Makefile | 1994-12-17 | 3.8 KB | 137 lines |
- # FlexCat: The flexible catalog generator V1.5
- # Copyright (C) 1993 Jochen Wiedmann
- #
- # This program is free software; you can redistribute it and/or modify
- # it under the terms of the GNU General Public License as published by
- # the Free Software Foundation; either version 2 of the License, or
- # (at your option) any later version.
- #
- # This program is distributed in the hope that it will be useful,
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- # GNU General Public License for more details.
- #
- # You should have received a copy of the GNU General Public License
- # along with this program; if not, write to the Free Software
- # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- #
- # This is the Makefile (DMake 2.1)
- #
-
- VERSION=1_5
-
- CFLAGS=-proto
-
- LFLAGS=
-
-
- # The binaries we use
- CC=dcc
- LN=dcc
- TEX=tex
- GTEX=gtex
- TEXINDEX=TexIndex
- RM=Delete quiet
- MAKEINFO=MakeInfo
- LHA=LhA
- CP=Copy
- MV=Move
-
- #
- # You should not need to change anything below.
- #
-
- # Some variables containing the lists of files to process
-
- # Object files to create
- OBJ=FlexCat.o FlexCat_cat.o
-
- # Catalogs available
- CATALOGS=Deutsch Italiano Français Español Suomi Schwäbisch Polski
-
-
- # Doc-files
- DOCS=FlexCat_deutsch.texinfo FlexCat_english.texinfo FlexCat_español.texinfo
-
- DOC=$(DOCS:*.texinfo:%1.guide)
-
- # Source descriptions
- SD=C_c_V21.sd C_c_V20.sd C_h.sd AutoC_c.sd AutoC_h.sd \
- C++_CatalogF.cc C++_CatalogF.h C++_cc.sd C++_h.sd \
- Oberon_V38.sd Oberon_V39.sd AmigaOberon.sd Oberon-A.sd \
- E21b.sd E30b.sd \
- Modula2Def.sd Modula2Mod.sd \
- AztecAs_asm.sd AztecAs_i.sd SASasm_a.sd SASasm_i.sd
-
- # Distribution-files
- DIST=$(OBJ:*.o:src/%1.c) $(DOC:*:doc/%1) src/FlexCat_cat.h \
- $(CATALOGS:*:Catalogs/%1/FlexCat.catalog) \
- $(DOC:*:doc/%1.info) $(DOCS:*:src/%1) $(SD:*:lib/%1) \
- src/DMakefile COPYING COPYING.info NewCatalog.ct \
- doc.info src.info $(CATALOGS:*:src/%1.ct) src/FlexCat.cd FlexCat \
- Languages/Schwäbisch.language Languages/Schwäbisch.asm \
- Languages/Schwäbisch.readme Languages/Polski.asm
-
- # Main targets: all clean binclean dist doc
- all: /FlexCat $(CATALOGS:*:/Catalogs/%1/FlexCat.catalog) doc /NewCatalog.ct
-
- clean: binclean
- $(RM) $(DOC:*:/doc/%1)
-
- binclean:
- $(RM) FlexCat #?.o #?.sym #?.dbg #?.m \
- #?.aux #?.cp #?.cps #?.fn #?.ky #?.log #?.pg #?.toc #?.tp #?.vr
-
- dist: all
- cd //
- $(RM) FlexCat$(VERSION).lha
- $(LHA) a -x FlexCat$(VERSION).lha $(DIST:*:FlexCat/%1) FlexCat.info \
- Contents Contents.info
- cd FlexCat/src
-
- doc: $(DOC:*:/doc/%1)
-
-
-
- # doc-Rules
- $(DOC:*.guide:/doc/%1.guide): $(DOC:*.guide:%1.texinfo)
- $(MAKEINFO) --amiga-39 --fill-column 76 --output %(left) %(right)
-
- /doc/FlexCat_deutsch.dvi: FlexCat_deutsch.texinfo
- $(GTEX) %(right)
- $(TEXINDEX) %(right:*.texinfo:%1.cp)
- $(GTEX) %(right)
- $(RM) #?.aux #?.cp #?.fn #?.ky #?.log #?.pg #?.toc #?.tp #?.vr #?.cps
- $(MV) %(right:*.texinfo:%1.dvi) %(left)
-
- /doc/FlexCat_english.dvi /doc/FlexCat_español.dvi: \
- FlexCat_english.texinfo FlexCat_español.texinfo
- $(TEX) %(right)
- $(TEXINDEX) %(right:*.texinfo:%1.cp)
- $(TEX) %(right)
- $(RM) #?.aux #?.cp #?.fn #?.ky #?.log #?.pg #?.toc #?.tp #?.vr #?.cps
- $(MV) %(right:*.texinfo:%1.dvi) %(left)
-
-
- # source-Rules
- /FlexCat: $(OBJ)
- $(LN) $(LFLAGS) -o %(left) %(right:*.o)
-
- $(OBJ): $(OBJ:*.o:%1.c)
- $(CC) $(CFLAGS) -c -o %(left) %(right)
-
- $(OBJ): FlexCat_cat.h
-
- FlexCat_cat.h FlexCat_cat.c: /lib/AutoC_h.sd /lib/AutoC_c.sd
- FlexCat FlexCat.cd %(left)=%(right:*:%1)
-
- FlexCat_cat.h FlexCat_cat.c: FlexCat.cd
-
- $(CATALOGS:*:/Catalogs/%1/FlexCat.catalog): FlexCat.cd
-
- $(CATALOGS:*:/Catalogs/%1/FlexCat.catalog): $(CATALOGS:*:%1.ct)
- FlexCat FlexCat.cd %(right) CATALOG %(left)
-
- /NewCatalog.ct: FlexCat.cd
- FlexCat %(right) NEWCTFILE %(left)
-