home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 2 / FFMCD02.bin / new / dev / misc / flexcat / src / dmakefile < prev    next >
Makefile  |  1993-12-21  |  4KB  |  131 lines

  1. #   FlexCat:            The flexible catalog generator        V1.01
  2. #   Copyright (C)   1993    Jochen Wiedmann
  3. #
  4. #   This program is free software; you can redistribute it and/or modify
  5. #   it under the terms of the GNU General Public License as published by
  6. #   the Free Software Foundation; either version 2 of the License, or
  7. #   (at your option) any later version.
  8. #
  9. #   This program is distributed in the hope that it will be useful,
  10. #   but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. #   GNU General Public License for more details.
  13. #
  14. #   You should have received a copy of the GNU General Public License
  15. #   along with this program; if not, write to the Free Software
  16. #   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17. #
  18. #   This is the Makefile (DMake 2.1)
  19. #
  20.  
  21. VERSION=1_01
  22.  
  23. CFLAGS=-proto
  24.  
  25. LFLAGS=
  26.  
  27.  
  28. #   The binaries we use
  29. CC=dcc
  30. LN=dcc
  31. TEX=tex
  32. GTEX=gtex
  33. TEXINDEX=TexIndex
  34. RM=Delete quiet
  35. MAKEINFO=MakeInfo
  36. LHA=LhA
  37. CP=Copy
  38. MV=Move
  39.  
  40. #
  41. #   You should not need to change anything below.
  42. #
  43.  
  44. #   Some variables containing the lists of files to process
  45.  
  46. #   Object files to create
  47. OBJ=FlexCat.o FlexCat_cat.o
  48.  
  49. #   Catalogs available
  50. CATALOGS=Deutsch Italiano
  51.  
  52.  
  53. #   Doc-files
  54. DOC=FlexCat_deutsch.dvi FlexCat_deutsch.guide FlexCat_deutsch.doc \
  55.     FlexCat_english.dvi FlexCat_english.guide FlexCat_english.doc
  56.  
  57. #   Distribution-files
  58. DIST=$(OBJ:*.o:src/%1.c) $(DOC:*:doc/%1) src/FlexCat_cat.h \
  59.      $(CATALOGS:*:Catalogs/%1/FlexCat.catalog) \
  60.      $(DOC:*:doc/%1.info) src/FlexCat_deutsch.texinfo \
  61.      src/FlexCat_english.texinfo C_c_V21.sd C_h.sd C_c_V20.sd \
  62.      Oberon_V38.sd Oberon_V39.sd AztecAs_i.sd \
  63.      AztecAs_asm.sd src/DMakefile COPYING COPYING.info NewCatalog.ct \
  64.      doc.info src.info $(CATALOGS:*:src/%1.ct) src/FlexCat.cd FlexCat
  65.  
  66.  
  67. #   Main targets: all clean binclean dist doc
  68. all: /FlexCat $(CATALOGS:*:/Catalogs/%1/FlexCat.catalog) doc /NewCatalog.ct
  69.  
  70. clean: binclean
  71.     $(RM) $(DOC:*:/doc/%1)
  72.  
  73. binclean:
  74.     $(RM) FlexCat #?.o #?.sym #?.dbg #?.m \
  75.       #?.aux #?.cp #?.cps #?.fn #?.ky #?.log #?.pg #?.toc #?.tp #?.vr
  76.  
  77. dist: all
  78.     cd //
  79.     $(RM) FlexCat$(VERSION).lha
  80.     $(LHA) a -x FlexCat$(VERSION).lha $(DIST:*:FlexCat/%1) FlexCat.info
  81.     cd FlexCat/src
  82.  
  83. doc:    $(DOC:*:/doc/%1)
  84.  
  85.  
  86.  
  87. #   doc-Rules
  88. $(DOC:*.guide:/doc/%1.guide): $(DOC:*.guide:%1.texinfo)
  89.     $(MAKEINFO) --amiga-39 --fill-column 76 --output %(left) %(right)
  90.  
  91. $(DOC:*.doc:/doc/%1.doc): $(DOC:*.doc:%1.texinfo)
  92.     $(MAKEINFO) --amiga-39 --fill-column 76 --no-headers --output %(left) \
  93.         %(right)
  94.  
  95. /doc/FlexCat_deutsch.dvi: FlexCat_deutsch.texinfo
  96.     $(GTEX) %(right)
  97.     $(TEXINDEX) %(right:*.texinfo:%1.cp)
  98.     $(GTEX) %(right)
  99.     $(RM) #?.aux #?.cp #?.fn #?.ky #?.log #?.pg #?.toc #?.tp #?.vr #?.cps
  100.     $(MV) %(right:*.texinfo:%1.dvi) %(left)
  101.  
  102. /doc/FlexCat_english.dvi: FlexCat_english.texinfo
  103.     $(TEX) %(right)
  104.     $(TEXINDEX) %(right:*.texinfo:%1.cp)
  105.     $(TEX) %(right)
  106.     $(RM) #?.aux #?.cp #?.fn #?.ky #?.log #?.pg #?.toc #?.tp #?.vr #?.cps
  107.     $(MV) %(right:*.texinfo:%1.dvi) %(left)
  108.  
  109.  
  110. #   source-Rules
  111. /FlexCat: $(OBJ)
  112.     $(LN) $(LFLAGS) -o %(left) %(right:*.o)
  113.  
  114. $(OBJ): $(OBJ:*.o:%1.c)
  115.     $(CC) $(CFLAGS) -c -o %(left) %(right)
  116.  
  117. $(OBJ): FlexCat_cat.h
  118.  
  119. FlexCat_cat.h FlexCat_cat.c: C_h.sd C_c_V21.sd
  120.     FlexCat FlexCat.cd %(left)=%(right)
  121.  
  122. FlexCat_cat.h FlexCat_cat.c: FlexCat.cd
  123.  
  124. $(CATALOGS:*:/Catalogs/%1/FlexCat.catalog): FlexCat.cd
  125.  
  126. $(CATALOGS:*:/Catalogs/%1/FlexCat.catalog): $(CATALOGS:*:%1.ct)
  127.     FlexCat %(right) CATALOG %(left)
  128.  
  129. /NewCatalog.ct: FlexCat.cd
  130.     FlexCat %(right) NEWCTFILE %(left)
  131.