| 1 |
# |
| 2 |
# Makefile for pst-pdgr package |
| 3 |
# |
| 4 |
# This file is in public domain |
| 5 |
# |
| 6 |
# $Id: Makefile,v 2.2 2017/11/20 21:27:26 boris Exp $ |
| 7 |
# |
| 8 |
|
| 9 |
PACKAGE=pst-pdgr |
| 10 |
|
| 11 |
all: $(PACKAGE).pdf |
| 12 |
|
| 13 |
%.pdf: %.ps |
| 14 |
ps2pdf -sAutoRotatePages=None $< |
| 15 |
|
| 16 |
%.ps: %.dvi |
| 17 |
dvips -Ppdf -o $@ $< |
| 18 |
|
| 19 |
%.dvi: %.dtx $(PACKAGE).sty $(PACKAGE).tex |
| 20 |
latex $< |
| 21 |
- bibtex $* |
| 22 |
latex $< |
| 23 |
- makeindex -s gind.ist -o $*.ind $*.idx |
| 24 |
- makeindex -s gglo.ist -o $*.gls $*.glo |
| 25 |
latex $< |
| 26 |
while ( grep -q '^LaTeX Warning: Label(s) may have changed' $*.log) \ |
| 27 |
do latex $<; done |
| 28 |
|
| 29 |
|
| 30 |
%.sty: %.ins %.dtx |
| 31 |
latex $< |
| 32 |
|
| 33 |
|
| 34 |
%.tex: %.ins %.dtx |
| 35 |
latex $< |
| 36 |
|
| 37 |
.PRECIOUS: $(PACKAGE).cfg $(PACKAGE).tex $(PACKAGE).sty |
| 38 |
|
| 39 |
|
| 40 |
clean: |
| 41 |
$(RM) $(PACKAGE).tex $(PACKAGE).sty $(PACKAGE).log $(PACKAGE).aux \ |
| 42 |
$(PACKAGE).cfg $(PACKAGE).glo $(PACKAGE).idx $(PACKAGE).toc \ |
| 43 |
$(PACKAGE).ilg $(PACKAGE).ind $(PACKAGE).out $(PACKAGE).lof \ |
| 44 |
$(PACKAGE).lot $(PACKAGE).bbl $(PACKAGE).blg $(PACKAGE).gls \ |
| 45 |
$(PACKAGE).dvi $(PACKAGE).ps |
| 46 |
|
| 47 |
distclean: clean |
| 48 |
$(RM) $(PACKAGE).pdf |
| 49 |
|
| 50 |
# |
| 51 |
# Archive for the distribution. Includes typeset documentation |
| 52 |
# |
| 53 |
archive: all clean |
| 54 |
COPYFILE_DISABLE=1 tar -C .. -czvf ../pst-pdgr.tgz --exclude '*~' --exclude '*.tgz' --exclude '*.zip' --exclude CVS --exclude '.git*' -s/latex/pst-pdgr/ latex; mv ../pst-pdgr.tgz . |