# # Makefile for acmart package # # This file is in public domain # # $Id: Makefile,v 1.10 2016/04/14 21:55:57 boris Exp $ # PACKAGE=acmart SAMPLES = \ sample-manuscript.tex \ sample-acmsmall.tex \ sample-acmlarge.tex \ sample-acmtog.tex \ sample-sigconf.tex \ sample-siggraph.tex \ sample-sigplan.tex \ sample-sigchi.tex \ sample-sigchi-a.tex PDF = $(PACKAGE).pdf ${SAMPLES:%.tex=%.pdf} all: ${PDF} %.pdf: %.dtx $(PACKAGE).cls pdflatex $< - bibtex $* pdflatex $< - makeindex -s gind.ist -o $*.ind $*.idx - makeindex -s gglo.ist -o $*.gls $*.glo pdflatex $< while ( grep -q '^LaTeX Warning: Label(s) may have changed' $*.log) \ do pdflatex $<; done %.cls: %.ins %.dtx pdflatex $< %.pdf: %.tex $(PACKAGE).cls ACM-Reference-Format.bst pdflatex $< - bibtex $* pdflatex $< while ( grep -q '^LaTeX Warning: Label(s) may have changed' $*.log) \ do pdflatex $<; done sample-manuscript.pdf \ sample-acmsmall.pdf \ sample-acmlarge.pdf \ sample-acmtog.pdf: samplebody-journals.tex sample-sigconf.pdf \ sample-siggraph.pdf \ sample-sigplan.pdf \ sample-sigchi.pdf: samplebody-conf.tex .PRECIOUS: $(PACKAGE).cfg $(PACKAGE).cls clean: $(RM) $(PACKAGE).cls *.log *.aux \ *.cfg *.glo *.idx *.toc \ *.ilg *.ind *.out *.lof \ *.lot *.bbl *.blg *.gls *.cut *.hd \ *.dvi *.ps *.thm *.tgz *.zip *.rpi distclean: clean $(RM) $(PDF) *-converted-to.pdf # # Archive for the distribution. Includes typeset documentation # archive: all clean tar -C .. -czvf $(PACKAGE).tgz --exclude '*~' --exclude '*.tgz' --exclude '*.zip' --exclude CVS --exclude '.git*' $(PACKAGE) zip: all clean zip -r $(PACKAGE).zip * -x '*~' -x '*.tgz' -x '*.zip' -x CVS -x 'CVS/*'