summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/texpower/Makefile
blob: c49ea0194258202dea7233a24837078461cc25df (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
RM=rm -f
SHELL=sh
VERSION=0.1b
JUNKS=*.aux *.toc *.idx *.glo *.dvi *.log *.lof *.ist *.ilg *.ind *.gls *.out *.tmp *~

help:
	@echo '**********************************************'
	@echo ' The following targets exist:                 '
	@echo ' - all: All targets below                     '
	@echo ' - unpack: Unpacks the bundle                 '
	@echo ' - pack: Packs the bundle                     '
	@echo ' - manual: Builds the user docs               '
	@echo ' - doc: Builds texpower package docs          '
	@echo ' - doc-powersem: Builds powersem class docs   '
	@echo ' - doc-tplists: Builds tplists docs           '
	@echo ' - clean: Remove all generate/junk files      '
	@echo '**********************************************'

unpack:
	latex tpbundle.ins
	@echo '**********************************************'
	@echo ' To make texpower bundle user documentation,  '
	@echo ' % make manual                                '
	@echo ' To make texpower package implementation docs '
	@echo ' % make doc                                   '
	@echo ' To make powersem class implementation docs   '
	@echo ' % make doc-powersem                          '
	@echo ' To make tplists package docs                 '
	@echo ' % make doc-tplists                           '
	@echo '**********************************************'

all: unpack doc doc-powersem manual

manual.tex: unpack

doc: texpower.dtx
	pdflatex texpower.dtx
	pdflatex texpower.dtx
	makeindex -s gglo.ist -o texpower.gls texpower.glo
	makeindex -s gind.ist -o texpower.ind texpower.idx
	pdflatex texpower.dtx

doc-powersem:
	pdflatex powersem.dtx
	pdflatex powersem.dtx
	makeindex -s gglo.ist -o powersem.gls powersem.glo
	makeindex -s gind.ist -o powersem.ind powersem.idx
	pdflatex powersem.dtx
        
doc-tplists:
	pdflatex tplists.dtx
	pdflatex tplists.dtx
	makeindex -s gglo.ist -o tplists.gls tplists.glo
	makeindex -s gind.ist -o tplists.ind tplists.idx
	pdflatex tplists.dtx

manual: manual.tex
	pdflatex manual.tex
	pdflatex manual.tex
	makeindex -o manual.ind manual.idx
	pdflatex manual.tex

pack: clean
	-(cd ..; cp -r dtx-real texpower-$(VERSION); \
        tar cvfz texpower-$(VERSION).tgz texpower-$(VERSION))

clean:
	@$(RM) $(JUNKS) *.cls *.sty *.cfg *.tex *.mps
	@echo The current directory has been cleaned up.