summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/generic/pst-pdgr/Makefile
blob: 7eae24e9a391b42ede09d5ba0e71dff8e51f8357 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#
# Makefile for pst-pdgr package
#
# This file is in public domain
#
# $Id: Makefile,v 2.2 2017/11/20 21:27:26 boris Exp $
#

PACKAGE=pst-pdgr

all:  $(PACKAGE).pdf

%.pdf:   %.ps
	ps2pdf -sAutoRotatePages=None $<

%.ps:  %.dvi
	dvips -Ppdf -o $@ $<

%.dvi:  %.dtx   $(PACKAGE).sty $(PACKAGE).tex
	latex $<
	- bibtex $*
	latex $<
	- makeindex -s gind.ist -o $*.ind $*.idx
	- makeindex -s gglo.ist -o $*.gls $*.glo
	latex $<
	while ( grep -q '^LaTeX Warning: Label(s) may have changed' $*.log) \
	do latex $<; done


%.sty:   %.ins %.dtx  
	latex $<


%.tex:   %.ins %.dtx  
	latex $<

.PRECIOUS:  $(PACKAGE).cfg $(PACKAGE).tex $(PACKAGE).sty


clean:
	$(RM) $(PACKAGE).tex $(PACKAGE).sty $(PACKAGE).log $(PACKAGE).aux \
	$(PACKAGE).cfg $(PACKAGE).glo $(PACKAGE).idx $(PACKAGE).toc \
	$(PACKAGE).ilg $(PACKAGE).ind $(PACKAGE).out $(PACKAGE).lof \
	$(PACKAGE).lot $(PACKAGE).bbl $(PACKAGE).blg $(PACKAGE).gls \
	$(PACKAGE).dvi $(PACKAGE).ps

distclean: clean
	$(RM) $(PACKAGE).pdf

#
# Archive for the distribution. Includes typeset documentation
#
archive:  all clean
	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 .