diff options
Diffstat (limited to 'macros/latex/contrib/sclang-prettifier/makefile')
-rw-r--r-- | macros/latex/contrib/sclang-prettifier/makefile | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/macros/latex/contrib/sclang-prettifier/makefile b/macros/latex/contrib/sclang-prettifier/makefile new file mode 100644 index 0000000000..0c61f04569 --- /dev/null +++ b/macros/latex/contrib/sclang-prettifier/makefile @@ -0,0 +1,46 @@ +TEXFLAGS = -e '$$pdflatex=q/pdflatex %O %S/' -pdf +LATEXMK = latexmk +RM = rm -f +PKGNAME = sclang-prettifier +PACKAGE = $(PKGNAME).dtx \ + $(PKGNAME).ins \ + $(PKGNAME).pdf \ + README \ + makefile + +all: doc + +doc: $(PKGNAME).pdf + +$(PKGNAME).pdf: $(PKGNAME).sty \ + $(PKGNAME).gls \ + $(PKGNAME).ind \ + $(PKGNAME).dtx + $(LATEXMK) $(TEXFLAGS) $(PKGNAME).dtx +# open -a Preview $(PKGNAME).pdf + +$(PKGNAME).sty: $(PKGNAME).ins \ + $(PKGNAME).dtx + latex $(PKGNAME).ins + +$(PKGNAME).gls: $(PKGNAME).glo + makeindex -s gglo.ist -o $(PKGNAME).gls $(PKGNAME).glo + +$(PKGNAME).ind: $(PKGNAME).idx + makeindex -s gind.ist -o $(PKGNAME).ind $(PKGNAME).idx + +$(PKGNAME).glo: $(PKGNAME).dtx $(PKGNAME).sty + $(LATEXMK) $(TEXFLAGS) $(PKGNAME).dtx + +dist: $(PACKAGE) + $(RM) $(PKGNAME).zip + zip $(PKGNAME).zip $(PACKAGE) + +clean: + $(RM) *.aux *.fdb_latexmk *.fls *.ind *.idx *.ilg *.glo *.gls \ + *.log *.lol *.m *.out *.tmp *.toc + +cleanall: clean + $(RM) $(PKGNAME).pdf $(PKGNAME).zip $(PKGNAME).sty + +.PHONY: all doc dist clean cleanall |