summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/svn/Makefile
blob: f1cbc7166b2aade3835f2581a4357d1cd37de0bc (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
#$Id: Makefile 45 2007-09-25 19:20:36Z repos $
#Makefile for the svn distribution

#Most Useful Options are as follows:
# make sty       #(or `make svn.sty' or just `make')     generate svn.sty only
# make all       #generate svn.sty and its documentation (.dvi format)
# make dvi       #or (`make svn.dvi'): generate documentation (.dvi format)
# make ps        #or (`make svn.ps'):  generate documentation (.ps format)
# make pdf       #or (`make svn.pdf'): generate documentation (.pdf format)
# make alldocs   #generate documentation in .dvi,.ps and .pdf format

# make clean     #(or `make clean-dotfiles') remove all `dotfiles' (.aux, .log etc)
# make distclean #as `make clean', but delete all .sty and documentation
#                #files too

SHELL=/bin/sh

#TeX and friends
LATEX=latex
PDFLATEX=pdflatex
MAKEINDEX=makeindex

#before running $(MAKEINDEX) we first need to run $(MAKEIDX) on the .dtx
#to generate the .idx file. $(MAKEIDX) is $(LATEX) or $(PDFLATEX), depending on
#whether we want a .dvi/.ps or .pdf at the end.
#the default is to make dvi
MAKEIDX=$(LATEX)

sty: svn.sty
svn.sty: svn.ins svn.dtx
	@echo "Generating svn.sty"
	$(LATEX) svn.ins

svn.ind: svn.dtx
	$(MAKEIDX) svn.dtx
	makeindex -s gind.ist -o svn.ind svn.idx

dvi ps svn.dvi svn.ps: MAKEIDX=$(LATEX)
pdf svn.pdf: MAKEIDX=$(PDFLATEX)

dvi: svn.dvi
svn.dvi: svn.dtx svn.sty svn.ind
	@echo "Generating svn.dvi"
	$(LATEX) svn.dtx

ps: svn.ps
svn.ps: svn.dvi
	@echo "Generating svn.ps"
	dvips svn.dvi

pdf: svn.pdf
svn.pdf: svn.dtx svn.sty svn.ind
	@echo "Generating svn.pdf"
	$(PDFLATEX) svn.dtx

.SUFFIXES:
.PHONY: all alldocs clean clean-dotfiles distclean dvi ps pdf sty
all: svn.sty svn.dvi

alldocs: dvi pdf ps

clean clean-dotfiles:
	@echo "Deleting unnecessary (pdf)(la)TeX temp files"
	rm -f svn.aux svn.idx svn.ilg svn.ind svn.log

distclean:	clean-dotfiles
	@echo "Deleting svn.{sty,ps,pdf,dvi}"
	rm -f svn.sty svn.dvi svn.ps svn.pdf