Initial version 0.1
[pytex.git] / Makefile
1 all : pytex.pdf pytex.sty example.pdf
2
3 pytex.pdf : pytex.dtx
4         pdflatex $<
5         makeindex pytex.glo -s gglo.ist -o pytex.gls
6         pdflatex $<
7
8 pytex.sty example.tex : pytex.ins pytex.dtx
9         pdflatex $<
10
11 example.pdf : example.tex pytex.sty
12         #pdflatex -interaction=batchmode $<
13         pdflatex -shell-escape $<
14
15 temp-clean :
16         rm -f *.aux *.log *.out *.lof *.lot *.toc \
17                 *.ilg *.glo *.gls *.idx *.ind *.dvi \
18                 *.pyc *.pkl
19
20 semi-clean : temp-clean
21         rm -f *.tex
22
23 clean : semi-clean
24         rm -f pytex.pdf example.pdf pytex.sty pytex.py pytex.tar.gz
25
26 dist : pytex.tar.gz
27
28 CLASS_FILES = Makefile README pytex.dtx pytex.ins \
29         pytex.sty pytex.pdf
30 EXAMPLE_FILES = example.tex example.pdf
31
32 pytex.tar.gz : $(CLASS_FILES) $(EXAMPLE_FILES)
33         rm -f $@
34         mkdir pytex
35         cp -p $(CLASS_FILES) pytex/
36         mkdir pytex/examples
37         cp -p $(EXAMPLE_FILES) pytex/examples/
38         tar -chozf $@ pytex
39         rm -rf pytex