| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
PACKAGE=issuulinks |
| 10 |
|
| 11 |
SAMPLESTEX = sample.tex |
| 12 |
|
| 13 |
SAMPLESPDF = ${SAMPLESTEX:%.tex=%.pdf} |
| 14 |
|
| 15 |
all: $(PACKAGE).pdf $(SAMPLESPDF) |
| 16 |
|
| 17 |
|
| 18 |
%.pdf: %.dtx $(PACKAGE).sty |
| 19 |
pdflatex $< |
| 20 |
- bibtex $* |
| 21 |
pdflatex $< |
| 22 |
- makeindex -s gind.ist -o $*.ind $*.idx |
| 23 |
- makeindex -s gglo.ist -o $*.gls $*.glo |
| 24 |
pdflatex $< |
| 25 |
while ( grep -q '^LaTeX Warning: Label(s) may have changed' $*.log) \ |
| 26 |
do pdflatex $<; done |
| 27 |
|
| 28 |
|
| 29 |
%.pdf: %.tex $(PACKAGE).sty |
| 30 |
pdflatex $< |
| 31 |
- bibtex $* |
| 32 |
pdflatex $< |
| 33 |
- makeindex -o $*.ind $*.idx |
| 34 |
pdflatex $< |
| 35 |
while ( grep -q '^LaTeX Warning: Label(s) may have changed' $*.log) \ |
| 36 |
do pdflatex $<; done |
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
%.sty: %.ins %.dtx |
| 41 |
pdflatex $< |
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
.PRECIOUS: $(PACKAGE).cfg $(PACKAGE).sty |
| 46 |
|
| 47 |
|
| 48 |
clean: |
| 49 |
$(RM) *.sty *.log *.aux \ |
| 50 |
*.cfg *.glo *.idx *.toc \ |
| 51 |
*.ilg *.ind *.out *.lof \ |
| 52 |
*.lot *.bbl *.blg *.gls \ |
| 53 |
*.dvi *.ps *.hd |
| 54 |
|
| 55 |
distclean veryclean: clean |
| 56 |
$(RM) *.pdf |
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
|
| 61 |
archive: all clean |
| 62 |
cd ..; \ |
| 63 |
tar -czvf $(PACKAGE).tgz --exclude '*~' --exclude '*.tgz' --exclude CVS $(PACKAGE);\ |
| 64 |
mv $(PACKAGE).tgz $(PACKAGE);\ |
| 65 |
cd $(PACKAGE) |