home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / unixtex-6.1b-bin0.lha / lib / texmf / tex / tugboat / makefile.d20 < prev    next >
Makefile  |  1996-10-12  |  2KB  |  100 lines

  1. # ======================================================================
  2. # Makefile for files in <TEX.TUGBOAT> on TOPS-20
  3. # This constructs the tugboat.bib file from the tb*.cnt files using
  4. # the awk program tugboat.awk, and then produces complete test
  5. # bibliographies in alpha and unsrt form.
  6. # [29-Oct-88]
  7. # ======================================================================
  8.  
  9. AWK = nawk
  10.  
  11. BIBTEX = nbibtex
  12.  
  13. DETEX = detex
  14.  
  15. DEV = alw
  16.  
  17. # We need a BIGG version of Common TeX to handle this big bibliography
  18. LATEX = cm-latex
  19. LATEX = latex
  20.  
  21. RM = delete
  22.  
  23. TEX = tex
  24.  
  25. .SUFFIXES:
  26.  
  27. .SUFFIXES:    .aux .dvi-$(DEV) .dvi .spell .ltx .tex .bbl .bib
  28.  
  29. .bib.bbl:
  30.     - $(NBIBTEX) $*
  31.  
  32. .dvi.dvi-$(DEV):
  33.     dvi$(DEV) -m$(MAG) $<
  34. #    cp $*.dvi-$(DEV) /$(DEV)
  35.     $(RM) $@
  36.  
  37. .ltx.aux .ltx.dvi:
  38.     $(LATEX) $<
  39.  
  40. .ltx.spell:
  41.     $(DETEX) $< | spell >$@
  42.  
  43. .tex.aux .tex.dvi:
  44.     $(TEX) $<
  45.  
  46. .tex.spell:
  47. #    $(DETEX) $< | spell >$@
  48.     qspell $< $@
  49.  
  50. TUGCONTENTS = tb0180.cnt tb0281.cnt tb0382.cnt tb0483.cnt tb0584.cnt \
  51.     tb0685.cnt tb0786.cnt tb0887.cnt tb0988.cnt tb1089.cnt
  52.  
  53. # For temporary debugging
  54. # TUGCONTENTS = tb0988.cnt
  55.  
  56. all:    tugbib tugbib2
  57.  
  58. tugbib:    tugbib.dvi
  59.  
  60. # tugbib is in alpha order; this is preferable to plain (which gives
  61. # the same reference order) so we can test the correctness of alphanumeric
  62. # bibliography labels.
  63. tugbib.dvi:    tugbib.ltx tugboat.bib
  64.     - $(RM) tugbib.bbl
  65.     - $(RM) tugbib.aux
  66.     - $(LATEX) tugbib.ltx
  67.     - $(BIBTEX) tugbib
  68.     - $(LATEX) tugbib.ltx
  69.     - $(LATEX) tugbib.ltx
  70.  
  71. tugbib.bbl:    tugbib.aux tugboat.bib
  72.     $(BIBTEX) tugbib
  73.  
  74. tugbib2:    tugbib2.dvi
  75.  
  76. # tugbib2 is in unsrt order for checking the bibliography against the
  77. # original TUGboat tables of contents
  78. tugbib2.dvi:    tugbib2.ltx tugboat.bib
  79.     - $(RM) tugbib2.bbl
  80.     - $(RM) tugbib2.aux
  81.     - $(LATEX) tugbib2.ltx
  82.     - $(BIBTEX) tugbib2
  83.     - $(LATEX) tugbib2.ltx
  84.     - $(LATEX) tugbib2.ltx
  85.  
  86. tugbib2.bbl:    tugbib2.aux tugboat.bib
  87.     - $(BIBTEX) tugbib2
  88.  
  89. tugboat.bib:    $(TUGCONTENTS) tugboat.awk Makefile
  90.     $(AWK) -f tugboat.awk $(TUGCONTENTS) >tugboat.bib
  91.  
  92. clean:
  93.     @- $(RM) *.aux
  94.     @- $(RM) *.blg
  95.     @- $(RM) *.bbl
  96.     @- $(RM) *.dvi*
  97.     @- $(RM) *.log
  98.     @- $(RM) *.lst
  99. #    @- $(RM) *~*
  100.