| 1 | RM=rm -f |
| 2 | SHELL=sh |
| 3 | VERSION=0.1 |
| 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 tpslifonts package ' |
| 11 | @echo ' - pack: Packs the package ' |
| 12 | @echo ' - doc: Builds tpslifonts documentation ' |
| 13 | @echo ' - clean: Remove all generate/junk files ' |
| 14 | @echo '**********************************************' |
| 15 | |
| 16 | unpack: |
| 17 | latex tpslifonts.ins |
| 18 | @echo '**********************************************' |
| 19 | @echo ' To make tpslifonts package documentation ' |
| 20 | @echo ' % make doc ' |
| 21 | @echo '**********************************************' |
| 22 | |
| 23 | all: unpack doc |
| 24 | |
| 25 | doc: tpslifonts.dtx |
| 26 | latex tpslifonts.dtx |
| 27 | latex tpslifonts.dtx |
| 28 | makeindex -s gglo.ist -o tpslifonts.gls tpslifonts.glo |
| 29 | makeindex -s gind.ist -o tpslifonts.ind tpslifonts.idx |
| 30 | latex tpslifonts.dtx |
| 31 | |
| 32 | pack: clean |
| 33 | -(cd ..; cp -r tpslifonts tpslifonts-$(VERSION); \ |
| 34 | tar cvfz tpslifonts-$(VERSION).tgz tpslifonts-$(VERSION)) |
| 35 | |
| 36 | clean: |
| 37 | @$(RM) $(JUNKS) tpslifonts.sty |
| 38 | @echo The current directory has been cleaned up. |