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