SHELL := bash LATEX := pdflatex all: noperltex.sty $(LATEX) isa.tex noperltex.sty: isa_file.tex @if $(SHELL) -c 'perltex --help' > /dev/null 2>&1; then \ perltex --makesty --latex=pdflatex isa_gen.tex; \ rm -f isa_gen.pdf isa_gen.log isa_gen.aux isa_gen.dfpl isa_gen.frpl isa_gen.lgpl isa_gen.topl isa_gen.pipe; \ else \ echo "no perltex installed! i hope you have the builded files";\ fi clean: @rm -f isa.aux isa.log isa.pdf cleanall: clean @rm -f noperltex.sty noperltex-*.tex