home *** CD-ROM | disk | FTP | other *** search
Makefile | 1994-04-17 | 3.5 KB | 131 lines |
- # FlexCat: The flexible catalog generator V1.2
- # 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_2
-
- 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=mv
-
- #
- # 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
-
-
- # Doc-files
- DOC=FlexCat_deutsch.dvi FlexCat_deutsch.guide FlexCat_deutsch.doc \
- FlexCat_english.dvi FlexCat_english.guide FlexCat_english.doc
-
- # Distribution-files
- DIST=$(OBJ:*.o:src/%1.c) $(DOC:*:doc/%1) src/FlexCat_cat.h \
- $(CATALOGS:*:Catalogs/%1/FlexCat.catalog) \
- $(DOC:*:doc/%1.info) src/FlexCat_deutsch.texinfo \
- src/FlexCat_english.texinfo C_c_V21.sd C_h.sd C_c_V20.sd \
- Oberon_V38.sd Oberon_V39.sd E21b.sd AztecAs_i.sd \
- AztecAs_asm.sd src/DMakefile COPYING COPYING.info NewCatalog.ct \
- doc.info src.info $(CATALOGS:*:src/%1.ct) src/FlexCat.cd FlexCat
-
-
- # 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
- 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:*.doc:/doc/%1.doc): $(DOC:*.doc:%1.texinfo)
- $(MAKEINFO) --amiga-39 --fill-column 76 --no-headers --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: FlexCat_english.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: /C_h.sd /C_c_V21.sd
- FlexCat FlexCat.cd %(left)=%(right)
-
- 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)
-