Debian Codegraph @

texmf-dist/source/latex/circ/Makefile

raw
1 # Makefile to install CIRC
2 # Copyright (C) 1998 Andreas Tille
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 #
18 # -- Testversion --
19 # It is very likely to contain errors!!!!!!!!!!!!
20 # Use it only at your own risk!!
21 # Please report errors in this file to [email protected]
22 #
23 # Andreas Tille 03/16/1998
24 #
25 INSTDIR=/usr/local/lib/texmf
26 CIRCMF=$(INSTDIR)/mf/circ
27 CIRCTEX=$(INSTDIR)/tex/circ
28 FONTMAP=/usr/lib/texmf/fontname/special.map
29 CIRCMFFILES=cibimos \
30 cicirc \
31 cidiod \
32 cioptic \
33 ciphysic\
34 cirest \
35 cisym \
36 ciwidko
37 PKFONTDIR=/var/spool/texmf/pk
38 TFMDIR=/var/spool/texmf/tfm
39
40 all: circ.drv circ.dtx
41
42 .PHONY: all
43
44 doc: circ.dvi circ.dtx
45
46 circ.drv: circ.dtx
47 tex circ.dtx
48
49 install: circ.drv
50 # delete old CIRC METAFONT files
51 if [ -d $(CIRCMF) ] ; then \
52 rm -rf $(CIRCMF)/ci*.mf $(CIRCMF)/csym.mf $(CIRCMF)/defcirc.mf ; \
53 else \
54 mkdir -p $(CIRCMF) ; \
55 fi
56 # move new CIRC METAFONT files
57 mv *.mf $(CIRCMF)
58 # delete old CIRC TeX files
59 if [ -d $(CIRCTEX) ] ; then \
60 rm -rf $(CIRCTEX)/*.def $(CIRCTEX)/circ.sty ; \
61 else \
62 mkdir -p $(CIRCTEX) ; \
63 fi
64 # move new CIRC TeX files
65 mv *.def circ.sty $(CIRCTEX)
66 # check fontmap special.map file for existing CIRC entries and
67 # append the necessary entries if not available
68 if [ ! -f $(FONTMAP) ] ; then \
69 mkdir -p `dirname $(FONTMAP)` ; \
70 touch $(FONTMAP) ; \
71 fi
72 if [ `grep -i -s -c cicirc $(FONTMAP)` -eq 0 ] ; then \
73 echo "@c CIRC fonts written by Sebastian Tannert and Andreas Tille" >> $(FONTMAP) ; \
74 fi
75 for mffile in $(CIRCMFFILES) ; \
76 do \
77 if [ `grep -i -s -c $$mffile $(FONTMAP)` -eq 0 ] ; then \
78 echo "$$mffile public circ % CIRC-package" >> $(FONTMAP) ; \
79 fi \
80 done
81 make cleanpk
82 make cleantfm
83
84 circ.dvi: circ.drv circ.dtx
85 latex circ.drv
86 makeindex -s circ.ist circ.idx
87 latex circ.drv
88 makeindex -s circ.ist circ.idx
89 latex circ.drv
90
91 cleantfm:
92 # delete old CIRC TFM files (according to entries in special.map)
93 if [ -d $(TFMDIR)/public ] ; then \
94 rm -rf $(TFMDIR)/public/circ ; \
95 fi
96
97 cleanpk:
98 # delete old CIRC PK files (according to entries in special.map)
99 if [ -d $(PKFONTDIR) ] ; then \
100 for deldir in `find $(PKFONTDIR) -name circ -type d | grep "public/circ"` ; \
101 do \
102 rm -rf $$deldir ; \
103 done \
104 fi
105
106 clean:
107 rm -f circ.log circ.idx circ.aux circ.toc circ.ind circ.ilg circ.ist *.600pk *.tfm
108
109 cleansource:
110 rm -f *.mf *.def circ.sty
111
112 veryclean:
113 make clean
114 make cleansource
115 rm -f cidoc.tex circ.drv circ.dvi cisyms.tex index.hlp