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