Debian Codegraph @

texmf-dist/doc/latex/fullminipage/Makefile

raw
1 #
2 # Makefile for fullminipage package
3 #
4 # Copyright 2012 Christian Schneider <software(at)chschneider(dot)eu>
5 #
6 # This file is part of fullminipage.
7 #
8 # fullminipage is free software: you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 3 as
10 # published by the Free Software Foundation, not any later version.
11 #
12 # fullminipage is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with fullminipage. If not, see <http://www.gnu.org/licenses/>.
19 #
20 # WARNING: THIS IS ALPHA SOFTWARE AND MAY CONTAIN SERIOUS BUGS!
21 #
22
23 PACKAGE := fullminipage
24 TESTFILE := fullminipage_test
25
26 PDFLATEX := pdflatex
27 MAKEINDEX := makeindex
28
29 # installation directories
30 DESTDIR := $(HOME)/.texmf
31 DOCDIR := $(DESTDIR)/doc/latex/$(PACKAGE)
32 SRCDIR := $(DESTDIR)/source/latex/$(PACKAGE)
33 TEXDIR := $(DESTDIR)/tex/latex/$(PACKAGE)
34
35 .PHONY: all pkg doc test install clean distclean mrproper force
36
37 all: pkg doc test
38
39 %.sty: %.ins %.dtx
40 $(RM) $@
41 $(PDFLATEX) -interaction=nonstopmode $<
42
43 %.idx %.glo: %.dtx %.sty
44 $(PDFLATEX) -interaction=nonstopmode $<
45
46 %.ind: %.idx
47 $(MAKEINDEX) -s gind.ist -o $@ $<
48
49 %.gls: %.glo
50 $(MAKEINDEX) -s gglo.ist -o $@ $<
51
52 $(PACKAGE).pdf: %.pdf: %.dtx %.sty %.ind %.gls
53 $(PDFLATEX) -interaction=nonstopmode $<
54 $(PDFLATEX) -interaction=nonstopmode $<
55 $(PDFLATEX) -interaction=nonstopmode $<
56
57 $(TESTFILE).pdf: %.pdf: %.tex $(PACKAGE).sty
58 $(PDFLATEX) -interaction=nonstopmode $<
59 $(PDFLATEX) -interaction=nonstopmode $<
60 $(PDFLATEX) -interaction=nonstopmode $<
61
62 pkg: $(PACKAGE).sty
63
64 test: $(TESTFILE).pdf
65
66 doc: $(PACKAGE).pdf
67
68 install:
69 mkdir -p $(DOCDIR) $(SRCDIR) $(TEXDIR)
70 install -m 644 README COPYING $(PACKAGE).pdf $(TESTFILE).pdf $(DOCDIR)
71 install -m 644 $(PACKAGE).ins $(PACKAGE).dtx $(TESTFILE).tex Makefile \
72 $(SRCDIR)
73 install -m 644 $(PACKAGE).sty $(TEXDIR)
74 mktexlsr $(DESTDIR)
75
76 clean:
77 $(RM) *.aux *.glo *.gls *.idx *.ilg *.ind *.log *.toc *.out *~
78
79 distclean: clean
80 $(RM) $(PACKAGE).sty
81
82 mrproper: distclean
83 $(RM) $(PACKAGE).pdf $(TESTFILE).pdf