From 62c39d72e806a4a57861c25c2db459c2fbae8cd9 Mon Sep 17 00:00:00 2001 From: Robert Alessi Date: Thu, 5 Mar 2020 18:51:57 +0100 Subject: removed icite.ins and README.md from icite.dtx --- Makefile | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index e06046e..63e0b26 100644 --- a/Makefile +++ b/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)) @@ -23,9 +24,13 @@ define dosamples lualatex --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 biber $(NAME) >/dev/null @@ -42,7 +47,7 @@ $(NAME).pdf: $(NAME).dtx $(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))) @@ -51,7 +56,7 @@ samples: lualatex: lualatex --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 @@ -95,7 +100,7 @@ zip: all package: distclean all mkdir $(NAME)/ - cp Makefile README.md $(NAME).{dtx,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)/ -- cgit v1.2.3