Debian Codegraph @

texmf-dist/doc/latex/mflogo/Makefile

raw
1 ## Makefile for the installation of the `mflogo' 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 = mflogo
24
25 # file names, used in dependencies
26
27 SRCFILES = \
28 $(PACKAGE).dtx \
29 $(PACKAGE).ins
30 TEXFILES = \
31 ulogo.fd \
32 $(PACKAGE).sty
33 DOCFILES = \
34 $(PACKAGE).dvi
35
36
37 ### customizable variables:
38
39 # Where the TeX installation resides:
40 TEXMF = `kpsewhich --expand-path='$$TEXMFMAIN'`
41 #TEXMF = /usr/local/teTeX/share/texmf
42
43 # standard directories
44 SRCDIR = $(TEXMF)/source/$(FORMAT)/$(PACKAGE)
45 TEXDIR = $(TEXMF)/tex/$(FORMAT)/$(PACKAGE)
46 DOCDIR = $(TEXMF)/doc/$(FORMAT)/$(PACKAGE)
47
48 # How to install the files:
49 INSTALL = cp -p
50 #INSTALL = install -c
51
52 # How to cleanup the files:
53 CLEAN = rm -f
54
55 # How to update the directory database:
56 TEXHASH = mktexlsr
57 #TEXHASH = texhash
58
59 # How to run LaTeX(2e) for docstrip'ing sources:
60 DOCSTRIP = yes | latex
61
62 # How to run LaTeX(2e) for documentation:
63 LATEX = latex
64
65
66 ### unpack targets:
67
68 default: all
69 all: make-tex make-doc
70
71 make-tex: $(TEXFILES)
72 make-doc: $(DOCFILES)
73 .PHONY: make-tex make-doc
74
75 $(TEXFILES): $(SRCFILES)
76 $(DOCSTRIP) $(PACKAGE).ins
77
78 $(DOCFILES): $(SRCFILES) $(TEXFILES)
79 $(LATEX) $(PACKAGE).dtx
80
81
82 ### install targets:
83
84 install: install-tex install-doc post-install
85 .PHONY: install
86
87 install-tex: $(TEXFILES)
88 test -d $(TEXDIR) || mkdir $(TEXDIR)
89 (for f in $(TEXFILES); \
90 do $(INSTALL) $$f $(TEXDIR); done)
91 .PHONY: install-tex
92
93 install-doc: $(DOCFILES)
94 test -d $(DOCDIR) || mkdir $(DOCDIR)
95 (for f in $(DOCFILES); \
96 do $(INSTALL) $$f $(DOCDIR); done)
97 .PHONY: install-doc
98
99 # uninstall target:
100
101 uninstall:
102 (for f in $(TEXFILES); \
103 do $(CLEAN) $(TEXDIR)/$$f; done)
104 (for f in $(DOCFILES); \
105 do $(CLEAN) $(DOCDIR)/$$f; done)
106 .PHONY: uninstall
107
108
109 # Update the directory database:
110 post-install:
111 $(TEXHASH)
112 .PHONY: post-install
113
114
115 ### clean targets:
116 clean:
117 rm -f *.log *.aux *.toc *.lof *.lot *.bbl *.blg
118 rm -f *.idx *.ind *.ilg *.glo *.gls
119
120 distclean: clean
121 rm -f $(TEXFILES) $(DOCFILES)