home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 3 / goldfish_volume_3.bin / files / dev / misc / adoc / source / dmakefile < prev    next >
Makefile  |  1995-04-13  |  2KB  |  97 lines

  1. # ADOC -*- Makefile -*- for Matt Dillon's nice DICE (Amiga)
  2. #
  3. # (c)Copyright 1995 by Tobias Ferber.
  4. #
  5. # This file is part of ADOC.
  6. #
  7. # ADOC is free software; you can redistribute it and/or modify
  8. # it under the terms of the GNU General Public License as published
  9. # by the Free Software Foundation; either version 1 of the License, or
  10. # (at your option) any later version.
  11. #
  12. # ADOC is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15. # GNU General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU General Public License
  18. # along with ADOC; see the file COPYING.  If not, write to
  19. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  
  21. CC       = dcc
  22. CFLAGS   = -3.1 -s
  23. FLEX     = flex -8 -f
  24. TEX      = virtex &tex
  25. TEXINDEX = texindex
  26. RM       = delete quiet
  27. CP       = copy quiet
  28. TAR      = tar
  29.  
  30. # -DDEBUG needs debug.c smartmem.c and timer.c
  31. #CFLAGS= -3.1 -s -DDEBUG
  32. #srcs = main.c args.c lex.yy.c libfun.c gencode.c strarg.c strexpand.c mactab.c flist.c debug.c smartmem.c timer.c
  33.  
  34. srcs = main.c args.c lex.yy.c libfun.c gencode.c strarg.c strexpand.c mactab.c flist.c
  35. objs = $(srcs:*.c:*.o)
  36. prog = adoc
  37.  
  38. all: $(prog)
  39.  
  40. #
  41.  
  42. $(prog): $(objs)
  43.     $(CC) $(CFLAGS) -o %(left) $(objs)
  44.  
  45. lex.yy.c: adoc.yy
  46.     $(FLEX) adoc.yy
  47.  
  48. # flex option `-f' makes need of dcc's -mC -mD options
  49.  
  50. $(objs): $(srcs)
  51.     $(CC) $(CFLAGS) -mC -mD -c -o %(left) %(right)
  52.  
  53. #
  54.  
  55. coda: coda.o
  56.     $(CC) $(CFLAGS) -o %(left) %(right)
  57.  
  58. coda.o: coda.c
  59.     $(CC) $(CFLAGS) -mC -mD -c -o %(left) %(right)
  60.  
  61. coda.c: coda.yy
  62.     $(FLEX) -t >coda.c coda.yy
  63.  
  64. #
  65.  
  66. install: $(prog) coda
  67.     $(CP) $(prog) coda devel:bin/
  68.  
  69. arc:
  70.         $(TAR) cf $(prog).tar `cpdist -n`
  71.  
  72. dist: $(prog) $(prog).texi $(prog).guide $(prog).dvi header.texi CHANGES
  73.     cpdist -a -DAMIGA adoc-1.02/
  74.  
  75. clean:
  76.     $(RM) coda coda.c adoc #?.o lex.yy.c #?.(log|toc|aux|cp|fn|vr|ky|pg|cps|fns|vrs|kys|pgs|tp|log)
  77.  
  78. #
  79.  
  80. docs: $(prog).dvi $(prog).guide
  81.  
  82. # create the AmigaGuide file and fix some bugs in `makeinfo --amiga'
  83.  
  84. $(prog).guide: $(prog).texi
  85.     makeinfo --amiga $(prog).texi
  86.     cvt -s -fpatchguide -o%s $(prog).guide
  87.  
  88. $(prog).dvi: $(prog).texi
  89.     $(TEX) $(prog).texi
  90.     $(TEXINDEX) $(prog).cp
  91.     $(TEXINDEX) $(prog).fn
  92.     $(TEXINDEX) $(prog).vr
  93.     $(TEXINDEX) $(prog).ky
  94.     $(TEXINDEX) $(prog).pg
  95.     $(TEX) $(prog).texi
  96.     $(TEX) $(prog).texi
  97.