diff options
author | Karl Berry <karl@freefriends.org> | 2022-04-11 20:10:17 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-04-11 20:10:17 +0000 |
commit | 286b36f2a5ed034a064e53f832254a06ca0fdcec (patch) | |
tree | 42c4e0ae8fc8c3e6d4e4cbb1f39e819c378d95cf /Master/texmf-dist/source/latex/acmart/Makefile | |
parent | 88d7dd58c74be44e97f56642c74971b3944e108e (diff) |
acmart (11apr22)
git-svn-id: svn://tug.org/texlive/trunk@63003 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/acmart/Makefile')
-rw-r--r-- | Master/texmf-dist/source/latex/acmart/Makefile | 37 |
1 files changed, 33 insertions, 4 deletions
diff --git a/Master/texmf-dist/source/latex/acmart/Makefile b/Master/texmf-dist/source/latex/acmart/Makefile index 916c87c9f1d..44f80ef195b 100644 --- a/Master/texmf-dist/source/latex/acmart/Makefile +++ b/Master/texmf-dist/source/latex/acmart/Makefile @@ -11,8 +11,10 @@ PACKAGE=acmart PDF = $(PACKAGE).pdf acmguide.pdf -all: ${PDF} ALLSAMPLES +BIBLATEXFILES= $(wildcard *.bbx) $(wildcard *.cbx) $(wildcard *.dbx) $(wildcard *.lbx) +SAMPLEBIBLATEXFILES=$(patsubst %,samples/%,$(BIBLATEXFILES)) +all: ${PDF} ALLSAMPLES %.pdf: %.dtx $(PACKAGE).cls pdflatex $< @@ -36,7 +38,7 @@ acmguide.pdf: $(PACKAGE).dtx $(PACKAGE).cls pdflatex $< -ALLSAMPLES: +ALLSAMPLES: $(SAMPLEBIBLATEXFILES) cd samples; pdflatex samples.ins; cd .. for texfile in samples/*.tex; do \ pdffile=$${texfile%.tex}.pdf; \ @@ -50,6 +52,17 @@ samples/%: % samples/$(PACKAGE).cls: $(PACKAGE).cls samples/ACM-Reference-Format.bst: ACM-Reference-Format.bst +samples/abbrev.bib: ACM-Reference-Format.bst + perl -pe 's/MACRO ({[^}]*}) *\n/MACRO \1/' ACM-Reference-Format.bst \ + | grep MACRO | sed 's/MACRO {/@STRING{/' \ + | sed 's/} *{/ = /' > samples/abbrev.bib + + +samples/%.bbx: %.bbx +samples/%.cbx: %.cbx +samples/%.dbx: %.dbx +samples/%.lbx: %.lbx + samples/%.pdf: samples/%.tex samples/$(PACKAGE).cls samples/ACM-Reference-Format.bst cd $(dir $@) && pdflatex-dev $(notdir $<) - cd $(dir $@) && bibtex $(notdir $(basename $<)) @@ -58,6 +71,22 @@ samples/%.pdf: samples/%.tex samples/$(PACKAGE).cls samples/ACM-Reference-For while ( grep -q '^LaTeX Warning: Label(s) may have changed' $(basename $<).log) \ do cd $(dir $@) && pdflatex-dev $(notdir $<); done +samples/sample-sigconf-biblatex.pdf: samples/sample-sigconf-biblatex.tex $(SAMPLEBIBLATEXFILES) + cd $(dir $@) && pdflatex-dev $(notdir $<) + - cd $(dir $@) && biber $(notdir $(basename $<)) + cd $(dir $@) && pdflatex-dev $(notdir $<) + cd $(dir $@) && pdflatex-dev $(notdir $<) + while ( grep -q '^LaTeX Warning: Label(s) may have changed' $(basename $<).log) \ + do cd $(dir $@) && pdflatex-dev $(notdir $<); done + +samples/sample-acmsmall-biblatex.pdf: samples/sample-acmsmall-biblatex.tex $(SAMPLEBIBLATEXFILES) + cd $(dir $@) && pdflatex-dev $(notdir $<) + - cd $(dir $@) && biber $(notdir $(basename $<)) + cd $(dir $@) && pdflatex-dev $(notdir $<) + cd $(dir $@) && pdflatex-dev $(notdir $<) + while ( grep -q '^LaTeX Warning: Label(s) may have changed' $(basename $<).log) \ + do cd $(dir $@) && pdflatex-dev $(notdir $<); done + samples/sample-xelatex.pdf: samples/sample-xelatex.tex samples/$(PACKAGE).cls samples/ACM-Reference-Format.bst cd $(dir $@) && xelatex-dev $(notdir $<) - cd $(dir $@) && bibtex $(notdir $(basename $<)) @@ -86,8 +115,8 @@ docclean: *.dvi *.ps *.thm *.tgz *.zip *.rpi \ samples/$(PACKAGE).cls samples/ACM-Reference-Format.bst \ samples/*.log samples/*.aux samples/*.out \ - samples/*.bbl samples/*.blg samples/*.cut - + samples/*.bbl samples/*.blg samples/*.cut \ + samples/*.run.xml samples/*.bcf $(SAMPLEBIBLATEXFILES) clean: docclean |