Debian Codegraph @

texmf-dist/doc/latex/navydocs/Makefile

raw
1 PACKAGE = navydocs
2 ########################################################################
3 ## LaTeX2e Makefile
4 ##
5 ## Update the following defines for your local configuration,
6 ##
7 CONTRIB = /usr/share/texmf/tex/latex/misc
8 ##
9 CP = cp
10 DVIPS = dvips -t letter
11 GZIP = gzip
12 LATEX = latex
13 MAKEINDEX = makeindex
14 PDFLATEX = pdflatex
15 PS2PDF = ps2pdf
16 RM = rm
17 TAR = tar
18 ########################################################################
19 ## make [all] Generates the style (.sty) file, the doc and
20 ## test files (.ps) and cleans up the directory.
21 ## make [un]install Install or uninstall the style (.sty) file from
22 ## the CONTRIB area.
23 ## make [very]clean Clean out various auxillary files. "veryclean"
24 ## cleans out more stuff.
25 ########################################################################
26 ## make dvi Generate the *.dvi version of the documentation.
27 ## make [full]ps Generate the documentation. The "fullps" version
28 ## adds the change log and the cross-references.
29 ## make idx Generate the change log and the cross-references
30 ## (for fullps -- requires MAKEINDEX).
31 ## make sty Generate the style (.sty) file.
32 ## make pdf Generate the *.pdf version of the documentation.
33 ########################################################################
34 ## make test Runs test program(s).
35 ## make distribtion Builds a distribution (.tar.gz) file.
36 ########################################################################
37
38 all: pdf test clean
39
40 install: sty
41 $(CP) $(PACKAGE).sty $(CONTRIB)
42 uninstall: ; -$(RM) -f $(CONTRIB)/$(PACKAGE).sty
43 clean: ; -$(RM) -f *.dvi *.log *.aux *.lof *.lot *.lom *.toc
44 -$(RM) -f *.idx *.ind *.glo *.gls *.ilg *.out *~
45 veryclean: clean
46 -$(RM) -f *.sty *.cls *.ps *.pdf *.gz *pk ltxdoc.cfg
47
48 dvi: $(PACKAGE).dvi
49 fullps: dvi idx ps
50 idx: $(PACKAGE).ind $(PACKAGE).gls
51 $(LATEX) $(PACKAGE).dtx
52 $(LATEX) $(PACKAGE).dtx
53 ps: $(PACKAGE).ps
54 sty: $(PACKAGE).sty
55 pdf: fullps
56 $(PS2PDF) $(PACKAGE).ps > $(PACKAGE).pdf
57
58 test: $(PACKAGE).sty
59 $(LATEX) sample298.tex
60 $(LATEX) sample298.tex
61 $(DVIPS) -o sample298.ps sample298.dvi
62
63 distribution: ; mkdir $(PACKAGE)
64 $(CP) -p Makefile $(PACKAGE).pdf $(PACKAGE)
65 $(CP) -p $(PACKAGE).dtx $(PACKAGE).ins $(PACKAGE)
66 $(TAR) -cvf $(PACKAGE).tar ./$(PACKAGE)
67 $(RM) -rf $(PACKAGE)
68 $(GZIP) -9 $(PACKAGE).tar
69
70
71 $(PACKAGE).aux: $(PACKAGE).dtx $(PACKAGE).sty
72 $(LATEX) $(PACKAGE).dtx
73 $(LATEX) $(PACKAGE).dtx
74
75 $(PACKAGE).dvi: $(PACKAGE).dtx $(PACKAGE).sty $(PACKAGE).aux
76 $(LATEX) $(PACKAGE).dtx
77 $(LATEX) $(PACKAGE).dtx
78
79 $(PACKAGE).glo: $(PACKAGE).dtx $(PACKAGE).sty
80 $(LATEX) $(PACKAGE).dtx
81
82 $(PACKAGE).gls: $(PACKAGE).glo
83 -$(MAKEINDEX) -s gglo.ist -o $(PACKAGE).gls $(PACKAGE).glo
84
85 $(PACKAGE).idx: $(PACKAGE).dtx $(PACKAGE).sty
86 $(LATEX) $(PACKAGE).dtx
87
88 $(PACKAGE).ind: $(PACKAGE).idx
89 -$(MAKEINDEX) -s gind.ist $(PACKAGE).idx
90
91 $(PACKAGE).ps: $(PACKAGE).dvi
92 $(DVIPS) -o $(PACKAGE).ps $(PACKAGE).dvi
93
94 $(PACKAGE).sty: $(PACKAGE).dtx $(PACKAGE).ins
95 $(LATEX) $(PACKAGE).ins