Debian Codegraph @

texmf-dist/source/latex/concmath/Makefile

raw
1 ## Makefile for the installation of the `concmath' package:
2 ##
3 ## 1999-03-10, Ulrik Vieth <[email protected]>
4 ##
5
6 ## This program is distributed in the hope that it will be useful,
7 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
8 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
9
10 ## Usage:
11 ##
12 ## say 'make' or 'make all' to unpack the macros and typeset
13 ## the documentation
14 ##
15 ## say 'make install' to install the macros and documentation
16 ##
17
18
19 ### package specifics (don't change!):
20
21 # package name, used in directories
22 FORMAT = latex
23 PACKAGE = concmath
24
25 # file names, used in dependencies
26
27 SRCFILES = \
28 $(PACKAGE).dtx \
29 $(PACKAGE).ins
30 TEXFILES = \
31 ot1ccr.fd \
32 omlccr.fd \
33 omsccr.fd \
34 omlccm.fd \
35 omsccsy.fd \
36 omxccex.fd \
37 ucca.fd \
38 uccb.fd \
39 $(PACKAGE).sty
40 DOCFILES = \
41 $(PACKAGE).dvi
42
43
44 ### customizable variables:
45
46 # Where the TeX installation resides:
47 TEXMF = `kpsewhich --expand-path='$$TEXMFMAIN'`
48 #TEXMF = /usr/local/teTeX/share/texmf
49
50 # standard directories
51 SRCDIR = $(TEXMF)/source/$(FORMAT)/$(PACKAGE)
52 TEXDIR = $(TEXMF)/tex/$(FORMAT)/$(PACKAGE)
53 DOCDIR = $(TEXMF)/doc/$(FORMAT)/$(PACKAGE)
54
55 # How to install the files:
56 INSTALL = cp -p
57 #INSTALL = install -c
58
59 # How to cleanup the files:
60 CLEAN = rm -f
61
62 # How to update the directory database:
63 TEXHASH = mktexlsr
64 #TEXHASH = texhash
65
66 # How to run LaTeX(2e) for docstrip'ing sources:
67 DOCSTRIP = yes | latex
68
69 # How to run LaTeX(2e) for documentation:
70 LATEX = latex
71
72
73 ### unpack targets:
74
75 default: all
76 all: make-tex make-doc
77
78 make-tex: $(TEXFILES)
79 make-doc: $(DOCFILES)
80 .PHONY: make-tex make-doc
81
82 $(TEXFILES): $(SRCFILES)
83 $(DOCSTRIP) $(PACKAGE).ins
84
85 $(DOCFILES): $(SRCFILES) $(TEXFILES)
86 $(LATEX) $(PACKAGE).dtx
87 $(LATEX) $(PACKAGE).dtx
88
89
90 ### install targets:
91
92 install: install-tex install-doc post-install
93 .PHONY: install
94
95 install-tex: $(TEXFILES)
96 test -d $(TEXDIR) || mkdir $(TEXDIR)
97 (for f in $(TEXFILES); \
98 do $(INSTALL) $$f $(TEXDIR); done)
99 .PHONY: install-tex
100
101 install-doc: $(DOCFILES)
102 test -d $(DOCDIR) || mkdir $(DOCDIR)
103 (for f in $(DOCFILES); \
104 do $(INSTALL) $$f $(DOCDIR); done)
105 .PHONY: install-doc
106
107 # uninstall target:
108
109 uninstall:
110 (for f in $(TEXFILES); \
111 do $(CLEAN) $(TEXDIR)/$$f; done)
112 (for f in $(DOCFILES); \
113 do $(CLEAN) $(DOCDIR)/$$f; done)
114 .PHONY: uninstall
115
116
117 # Update the directory database:
118 post-install:
119 $(TEXHASH)
120 .PHONY: post-install
121
122
123 ### clean targets:
124 clean:
125 rm -f *.log *.aux *.toc *.lof *.lot *.bbl *.blg
126 rm -f *.idx *.ind *.ilg *.glo *.gls
127
128 distclean: clean
129 rm -f $(TEXFILES) $(DOCFILES)