diff options
author | Karl Berry <karl@freefriends.org> | 2020-03-06 21:30:42 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-03-06 21:30:42 +0000 |
commit | 994560f76edc0ba77542b37a69a0f7e2de8733a1 (patch) | |
tree | 7a779e500559f1f6b61ede14e1f0f8e4b1e06780 /Master/texmf-dist/source/latex/icite/Makefile | |
parent | 42ae3845f0172233885a1e6895a92093a68c2711 (diff) |
icite (6mar20)
git-svn-id: svn://tug.org/texlive/trunk@54130 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/icite/Makefile')
-rw-r--r-- | Master/texmf-dist/source/latex/icite/Makefile | 37 |
1 files changed, 22 insertions, 15 deletions
diff --git a/Master/texmf-dist/source/latex/icite/Makefile b/Master/texmf-dist/source/latex/icite/Makefile index 35bf3e4a63d..01c10eb740c 100644 --- a/Master/texmf-dist/source/latex/icite/Makefile +++ b/Master/texmf-dist/source/latex/icite/Makefile @@ -4,6 +4,7 @@ PWD = $(shell pwd) VERS = $(shell ltxfileinfo -v $(NAME).dtx|sed -e 's/^v//') LOCAL = $(shell kpsewhich --var-value TEXMFLOCAL) UTREE = $(shell kpsewhich --var-value TEXMFHOME) +CMP = lualatex-dev exts := md bib ins dtx html texsamples := $(basename $(wildcard $(PWD)/samples/*.tex)) @@ -14,44 +15,48 @@ findopts := $(foreach ext,$(exts),-or -iname "*.$(ext)") # $(if $(wildcard $(PWD)/TMP/$(notdir $1).bcf),biber $(PWD)/TMP/$(notdir $1),) define dosamples - lualatex --output-dir=$(PWD)/TMP --shell-escape $1 >/dev/null - lualatex --output-dir=$(PWD)/TMP --shell-escape $1 >/dev/null + $(CMP) --output-dir=$(PWD)/TMP --shell-escape $1 >/dev/null + $(CMP) --output-dir=$(PWD)/TMP --shell-escape $1 >/dev/null if [ -f $(PWD)/TMP/$(notdir $1)-primary.idx ]; \ then texindy -M $(PWD)/TMP/$(notdir $1).xdy $(PWD)/TMP/$(notdir $1)-primary.idx >/dev/null; fi if [ -f $(PWD)/TMP/$(notdir $1).bcf ]; then biber $(PWD)/TMP/$(notdir $1) >/dev/null; fi - lualatex --output-dir=$(PWD)/TMP --shell-escape $1 >/dev/null - lualatex --output-dir=$(PWD)/TMP --shell-escape $1 >/dev/null + $(CMP) --output-dir=$(PWD)/TMP --shell-escape $1 >/dev/null + $(CMP) --output-dir=$(PWD)/TMP --shell-escape $1 >/dev/null endef -all: $(NAME).pdf +sty: clean + $(CMP) $(NAME).ins + +all: clean sty $(NAME).pdf # test -e README.md || exit 0 -$(NAME).pdf: $(NAME).dtx + +$(NAME).pdf: clean sty $(NAME).dtx @ echo "Make documentation..." - lualatex --shell-escape --recorder --interaction=batchmode $(NAME).dtx >/dev/null + $(CMP) --shell-escape --recorder --interaction=batchmode $(NAME).dtx >/dev/null biber $(NAME) >/dev/null - lualatex --shell-escape --recorder --interaction=batchmode $(NAME).dtx >/dev/null + $(CMP) --shell-escape --recorder --interaction=batchmode $(NAME).dtx >/dev/null if [ -f $(NAME).glo ]; then makeindex -q -s gglo.ist -o $(NAME).gls $(NAME).glo; fi if [ -f $(NAME).idx ]; then makeindex -q -s gind.ist -o $(NAME).ind $(NAME).idx; fi if [ -f loccit.idx ]; then texindy -M icite.xdy loccit.idx >/dev/null; fi if [ -f primary.idx ]; then texindy -M icite.xdy primary.idx >/dev/null; fi - lualatex --shell-escape --recorder --interaction=nonstopmode $(NAME).dtx > /dev/null - lualatex --shell-escape --recorder --interaction=nonstopmode $(NAME).dtx > /dev/null + $(CMP) --shell-escape --recorder --interaction=nonstopmode $(NAME).dtx > /dev/null + $(CMP) --shell-escape --recorder --interaction=nonstopmode $(NAME).dtx > /dev/null @ echo "Make sample files..." if [ ! -d $(PWD)/TMP ]; then mkdir $(PWD)/TMP; fi cp $(PWD)/samples/*.bib $(PWD)/TMP $(foreach file,$(texsamples), $(call dosamples, $(file))) mv TMP/*.pdf samples/ -samples: +samples: clean sty if [ ! -d $(PWD)/TMP ]; then mkdir $(PWD)/TMP; fi cp $(PWD)/samples/*.bib $(PWD)/TMP $(foreach file,$(texsamples), $(call dosamples, $(file))) mv TMP/*.pdf samples/ lualatex: - lualatex --shell-escape --recorder --interaction=batchmode $(NAME).dtx >/dev/null + $(CMP) --shell-escape --recorder --interaction=batchmode $(NAME).dtx >/dev/null -clean: lualatex +clean: rm -f $(NAME).bib $(PWD)/TMP/*.bib rm -rf .backup find -iname "*~" -or -iname "*.pdf" | xargs rm -rf @@ -70,9 +75,10 @@ inst: uninst all cp $(NAME).dtx $(UTREE)/source/latex/$(NAME) cp $(NAME).sty $(UTREE)/tex/latex/$(NAME) cp $(NAME).pdf $(UTREE)/doc/latex/$(NAME) + cp -r samples/ $(UTREE)/doc/latex/$(NAME) local: uninst - lualatex $(NAME).ins + $(CMP) $(NAME).ins mkdir -p $(UTREE)/{tex,source,doc}/latex/$(NAME) cp $(NAME).sty $(UTREE)/tex/latex/$(NAME) @@ -84,6 +90,7 @@ install: all sudo cp $(NAME).dtx $(LOCAL)/source/latex/$(NAME) sudo cp $(NAME).sty $(LOCAL)/tex/latex/$(NAME) sudo cp $(NAME).pdf $(LOCAL)/doc/latex/$(NAME) + cp -r samples/ $(LOCAL)/doc/latex/$(NAME) uninstall: rm -rf $(LOCAL)/{tex,source,doc}/latex/$(NAME) @@ -95,7 +102,7 @@ zip: all package: distclean all mkdir $(NAME)/ - cp Makefile README.md $(NAME).{dtx,ins,pdf} $(NAME)/ + cp Makefile README.md $(NAME).{ins,dtx,pdf} $(NAME)/ cp -r samples/ $(NAME)/ mkdir -p tex/latex/$(NAME)/ cp $(NAME).sty tex/latex/$(NAME)/ |