all : pytex.pdf pytex.sty example.pdf pytex.pdf : pytex.dtx pdflatex $< makeindex pytex.glo -s gglo.ist -o pytex.gls pdflatex $< pytex.sty example.tex : pytex.ins pytex.dtx pdflatex $< example.pdf : example.tex pytex.sty #pdflatex -interaction=batchmode $< pdflatex -shell-escape $< temp-clean : rm -f *.aux *.log *.out *.lof *.lot *.toc \ *.ilg *.glo *.gls *.idx *.ind *.dvi \ *.pyc *.pkl semi-clean : temp-clean rm -f *.tex clean : semi-clean rm -f pytex.pdf example.pdf pytex.sty pytex.py pytex.tar.gz dist : pytex.tar.gz CLASS_FILES = Makefile README pytex.dtx pytex.ins \ pytex.sty pytex.pdf EXAMPLE_FILES = example.tex example.pdf pytex.tar.gz : $(CLASS_FILES) $(EXAMPLE_FILES) rm -f $@ mkdir pytex cp -p $(CLASS_FILES) pytex/ mkdir pytex/examples cp -p $(EXAMPLE_FILES) pytex/examples/ tar -chozf $@ pytex rm -rf pytex