| 1 |
RM=rm -f |
| 2 |
SHELL=sh |
| 3 |
VERSION=0.1b |
| 4 |
JUNKS=*.aux *.toc *.idx *.glo *.dvi *.log *.lof *.ist *.ilg *.ind *.gls *.out *.tmp *~ |
| 5 |
|
| 6 |
help: |
| 7 |
@echo '**********************************************' |
| 8 |
@echo ' The following targets exist: ' |
| 9 |
@echo ' - all: All targets below ' |
| 10 |
@echo ' - unpack: Unpacks the bundle ' |
| 11 |
@echo ' - pack: Packs the bundle ' |
| 12 |
@echo ' - manual: Builds the user docs ' |
| 13 |
@echo ' - doc: Builds texpower package docs ' |
| 14 |
@echo ' - doc-powersem: Builds powersem class docs ' |
| 15 |
@echo ' - doc-tplists: Builds tplists docs ' |
| 16 |
@echo ' - clean: Remove all generate/junk files ' |
| 17 |
@echo '**********************************************' |
| 18 |
|
| 19 |
unpack: |
| 20 |
latex tpbundle.ins |
| 21 |
@echo '**********************************************' |
| 22 |
@echo ' To make texpower bundle user documentation, ' |
| 23 |
@echo ' % make manual ' |
| 24 |
@echo ' To make texpower package implementation docs ' |
| 25 |
@echo ' % make doc ' |
| 26 |
@echo ' To make powersem class implementation docs ' |
| 27 |
@echo ' % make doc-powersem ' |
| 28 |
@echo ' To make tplists package docs ' |
| 29 |
@echo ' % make doc-tplists ' |
| 30 |
@echo '**********************************************' |
| 31 |
|
| 32 |
all: unpack doc doc-powersem manual |
| 33 |
|
| 34 |
manual.tex: unpack |
| 35 |
|
| 36 |
doc: texpower.dtx |
| 37 |
pdflatex texpower.dtx |
| 38 |
pdflatex texpower.dtx |
| 39 |
makeindex -s gglo.ist -o texpower.gls texpower.glo |
| 40 |
makeindex -s gind.ist -o texpower.ind texpower.idx |
| 41 |
pdflatex texpower.dtx |
| 42 |
|
| 43 |
doc-powersem: |
| 44 |
pdflatex powersem.dtx |
| 45 |
pdflatex powersem.dtx |
| 46 |
makeindex -s gglo.ist -o powersem.gls powersem.glo |
| 47 |
makeindex -s gind.ist -o powersem.ind powersem.idx |
| 48 |
pdflatex powersem.dtx |
| 49 |
|
| 50 |
doc-tplists: |
| 51 |
pdflatex tplists.dtx |
| 52 |
pdflatex tplists.dtx |
| 53 |
makeindex -s gglo.ist -o tplists.gls tplists.glo |
| 54 |
makeindex -s gind.ist -o tplists.ind tplists.idx |
| 55 |
pdflatex tplists.dtx |
| 56 |
|
| 57 |
manual: manual.tex |
| 58 |
pdflatex manual.tex |
| 59 |
pdflatex manual.tex |
| 60 |
makeindex -o manual.ind manual.idx |
| 61 |
pdflatex manual.tex |
| 62 |
|
| 63 |
pack: clean |
| 64 |
-(cd ..; cp -r dtx-real texpower-$(VERSION); \ |
| 65 |
tar cvfz texpower-$(VERSION).tgz texpower-$(VERSION)) |
| 66 |
|
| 67 |
clean: |
| 68 |
@$(RM) $(JUNKS) *.cls *.sty *.cfg *.tex *.mps |
| 69 |
@echo The current directory has been cleaned up. |