| 1 |
# File: Makefile |
| 2 |
# Purpose: automatic generation of documentation and installation |
| 3 |
# of the fonts (at least on UNIX) |
| 4 |
# Author: Piet Tutelaers (internet: [email protected]) |
| 5 |
# Version: Febr. 1992 |
| 6 |
# |
| 7 |
|
| 8 |
SHELL = /bin/sh |
| 9 |
|
| 10 |
# |
| 11 |
# Next definitions should point to the place where the .sty files are |
| 12 |
# stored (INPUTS) and where the .tfm files are (FONTS) |
| 13 |
# |
| 14 |
INPUTS = /usr/local/lib/tex30/inputs |
| 15 |
FONTS = /usr/local/lib/tex30/fonts:/usr/local/lib/tex30/PSfonts: |
| 16 |
|
| 17 |
# |
| 18 |
# Next definitions should point to the place where the .sty files are |
| 19 |
# installed (DESTINPUTS), the .tfm files (DESTFONTS) and the 300pk |
| 20 |
# files (DESTPK) |
| 21 |
DESTTEX=/usr/local/lib/tex30 |
| 22 |
DESTINPUTS= $(DESTTEX)/inputs |
| 23 |
DESTFONTS = $(DESTTEX)/fonts |
| 24 |
DESTPK = $(DESTTEX)/pkfonts |
| 25 |
|
| 26 |
MFCHESSBASE= mf/chesspieces.mf mf/chessbase.mf |
| 27 |
CHESSMACROS= chess20.300pk chessf10.300pk inputs/chess.sty |
| 28 |
|
| 29 |
.SUFFIXES: .dvi .ps .300gf .300pk |
| 30 |
|
| 31 |
all: fonts doc |
| 32 |
|
| 33 |
doc: TUGboat.ps Symbols.ps tal.ps Kasparov.ps |
| 34 |
@echo "You can send the PostScript files to the printer" |
| 35 |
|
| 36 |
fonts: chess10.300pk chess20.300pk chess30.300pk chessf10.300pk |
| 37 |
|
| 38 |
TUGboat.dvi: doc/TUGboat.ltx doc/TUGgame.ltx $(CHESSMACROS) |
| 39 |
(TEXINPUTS=.:doc:inputs:$(INPUTS); export TEXINPUTS; \ |
| 40 |
TEXFONTS=fonts:$(FONTS); export TEXFONTS; \ |
| 41 |
latex "\batchmode\input TUGboat.ltx" \ |
| 42 |
latex "\batchmode\input TUGboat.ltx") |
| 43 |
|
| 44 |
Symbols.dvi: doc/Symbols.ltx $(CHESSMACROS) |
| 45 |
(TEXINPUTS=.:doc:inputs:$(INPUTS); export TEXINPUTS; \ |
| 46 |
TEXFONTS=fonts:$(FONTS); export TEXFONTS; \ |
| 47 |
latex "\batchmode\input Symbols.ltx") |
| 48 |
|
| 49 |
tal.dvi: doc/tal.ltx $(CHESSMACROS) |
| 50 |
(TEXINPUTS=.:doc:inputs:$(INPUTS); export TEXINPUTS; \ |
| 51 |
TEXFONTS=fonts:$(FONTS); export TEXFONTS; \ |
| 52 |
latex "\batchmode\input tal.ltx") |
| 53 |
|
| 54 |
Kasparov.dvi: doc/Kasparov.ltx $(CHESSMACROS) |
| 55 |
(TEXINPUTS=.:doc:inputs:$(INPUTS); export TEXINPUTS; \ |
| 56 |
TEXFONTS=fonts:$(FONTS); export TEXFONTS; \ |
| 57 |
latex "\batchmode\input Kasparov.ltx") |
| 58 |
|
| 59 |
.dvi.ps: |
| 60 |
(TEXINPUTS=.:doc:inputs:$(INPUTS); export TEXINPUTS; \ |
| 61 |
dvips -o $*.ps $<) |
| 62 |
|
| 63 |
.300gf.300pk: |
| 64 |
gftopk $< |
| 65 |
|
| 66 |
chess10.tfm chess10.300gf: mf/chess10.mf $(MFCHESSBASE) |
| 67 |
(MFINPUTS=mf; export MFINPUTS; \ |
| 68 |
mf "\mode:=localfont; input chess10") |
| 69 |
|
| 70 |
chess20.tfm chess20.300gf: mf/chess20.mf $(MFCHESSBASE) |
| 71 |
(MFINPUTS=mf; export MFINPUTS; \ |
| 72 |
mf "\mode:=localfont; input chess20") |
| 73 |
|
| 74 |
chess30.tfm chess30.300gf: mf/chess30.mf $(MFCHESSBASE) |
| 75 |
(MFINPUTS=mf; export MFINPUTS; \ |
| 76 |
mf "\mode:=localfont; input chess30") |
| 77 |
|
| 78 |
chessf10.tfm chessf10.300gf: mf/chessf10.mf $(MFCHESSBASE) |
| 79 |
(MFINPUTS=mf; export MFINPUTS; \ |
| 80 |
mf "\mode:=localfont; input chessf10") |
| 81 |
|
| 82 |
install: fonts inputs/chess.sty |
| 83 |
install -m 644 chess20.300pk $(DESTPK) |
| 84 |
install -m 644 chessf10.300pk $(DESTPK) |
| 85 |
install -m 644 chess20.tfm $(DESTFONTS) |
| 86 |
install -m 644 chessf10.tfm $(DESTFONTS) |
| 87 |
(cd inputs; install -c -m 644 chess.sty $(DESTINPUTS)) |
| 88 |
|
| 89 |
clean: |
| 90 |
rm -f *gf *pk *.ps *.dvi *.aux *.log *.tfm |
| 91 |
|
| 92 |
SOURCES = README \ |
| 93 |
CHANGES12 \ |
| 94 |
CopyRight \ |
| 95 |
INSTALLATION \ |
| 96 |
Makefile \ |
| 97 |
doc/TUGboat.ltx \ |
| 98 |
doc/TUGgame.ltx \ |
| 99 |
doc/boards.ltx \ |
| 100 |
doc/tal.ltx \ |
| 101 |
doc/tal.tex \ |
| 102 |
doc/Kasparov.ltx \ |
| 103 |
doc/Symbols.ltx \ |
| 104 |
doc/Symbols.tex \ |
| 105 |
doc/dutch-tt.tex \ |
| 106 |
doc/dutch-tt.ltx \ |
| 107 |
doc/SchaakMaatje.ltx \ |
| 108 |
inputs/chess.sty \ |
| 109 |
mf/README \ |
| 110 |
mf/chessf10.mf \ |
| 111 |
mf/chessdiag.mf \ |
| 112 |
mf/chess20.mf \ |
| 113 |
mf/chessbase.mf \ |
| 114 |
mf/chesspieces.mf \ |
| 115 |
mf/chess30.mf \ |
| 116 |
mf/chessdiag.Xmf \ |
| 117 |
mf/chess10.mf |
| 118 |
|
| 119 |
printsources: |
| 120 |
enscript -pchess12.ps $(SOURCES) |
| 121 |
@echo "You can send the chess12.ps to the printer" |
| 122 |
|
| 123 |
# DO NOT DELETE THIS LINE -- make depend depends on it. |
| 124 |
TUGboat.dvi: chess10.300pk chess20.300pk chessf10.300pk |