summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/svninfo/Makefile
blob: 510e4ab2d6ae03277b4d129af0e7fb8093038e0a (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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
########################################################################
## LaTeX2e Makefile
##
## For configuration, update the following defines:
##
## $Id: Makefile 3963 2008-08-08 21:42:56Z brucker $
##
## This file ist part of the svninfo package. Please see the file
## svninfo.dtx for copyright information.
########################################################################

BASE	   = svninfo

TEXDIR	   =
CONTRIB    = $(TEXDIR)/lib/texmf/tex/latex2e/contrib/$(BASE)
DOCDIR     = $(TEXDIR)/doc/latex2e

DVIPS	   = dvips
LATEX	   = latex
MAKEINDEX  = makeindex
PDFLATEX   = pdflatex

TAR	   = tar

########################################################################

REV		= 0.7.3
TAR_FILE	= svninfo-$(REV).tar.gz
TAR_DIR		= svninfo-$(REV)
SRC		= svninfo.dtx svninfo.ins README Makefile
GEN		= svninfo.sty svninfo.cfg svninfo.init

all:		$(BASE).sty dvi ps pdf clean

sty:		svninfo.sty
dtx:		svninfo.dtx 
dvi:		svninfo.dvi 
ps:		svninfo.ps  
pdf:		svninfo.pdf 
idx:		$(BASE).ind $(BASE).gls
		$(LATEX) $(BASE).dtx

%.sty:%.dtx %.ins
	$(LATEX) $*.ins

svninfo.cfg:	  svninfo.sty
svninfo.init:     svninfo.sty

%.dvi:%.dtx
	$(LATEX) $*.dtx
	makeindex -s gind.ist -o svninfo.ind svninfo.idx
	makeindex -s gglo.ist -o svninfo.gls svninfo.glo
	$(LATEX) $*.dtx

%.dvi:%.tex
	$(LATEX) $*.tex
	$(LATEX) $*.tex

%.pdf:%.dtx
	rm -f *.toc *.out
	$(PDFLATEX) $*.dtx
	$(PDFLATEX) $*.dtx

%.pdf:%.tex
	$(PDFLATEX) $*.tex
	$(PDFLATEX) $*.tex

%.ps:%.dvi
	$(DVIPS) $*.dvi

tar: distclean
	rm -fr $(TAR_DIR) $(TAR_FILE) $(TAR_FILE).gz
	mkdir $(TAR_DIR)
	cp -p $(SRC)  $(TAR_DIR)
	$(TAR) -zcvf $(TAR_FILE)  $(TAR_DIR);
	rm -rf $(TAR_DIR)

clean:
	rm -f *.log *.aux *.lof *.lot *.toc *.idx *.ind *.glo *.gls *~ *.ilg  \
		*.out

realclean: clean
	rm -fr *.dvi *.ps $(GEN) *.pdf

distclean: realclean
	rm -fr README-*