aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2020-03-05 18:51:57 +0100
committerRobert Alessi <alessi@robertalessi.net>2020-03-05 18:51:57 +0100
commit62c39d72e806a4a57861c25c2db459c2fbae8cd9 (patch)
tree5a76c2e381dcd788d6870fbebde85f261316c645 /Makefile
parent66da23898c3b4393e8c1fca9e4c288061f36c658 (diff)
downloadicite-62c39d72e806a4a57861c25c2db459c2fbae8cd9.tar.gz
removed icite.ins and README.md from icite.dtx
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 10 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index e06046e..63e0b26 100644
--- a/Makefile
+++ b/Makefile
@@ -4,6 +4,7 @@ PWD = $(shell pwd)
4VERS = $(shell ltxfileinfo -v $(NAME).dtx|sed -e 's/^v//') 4VERS = $(shell ltxfileinfo -v $(NAME).dtx|sed -e 's/^v//')
5LOCAL = $(shell kpsewhich --var-value TEXMFLOCAL) 5LOCAL = $(shell kpsewhich --var-value TEXMFLOCAL)
6UTREE = $(shell kpsewhich --var-value TEXMFHOME) 6UTREE = $(shell kpsewhich --var-value TEXMFHOME)
7CMP = lualatex-dev
7 8
8exts := md bib ins dtx html 9exts := md bib ins dtx html
9texsamples := $(basename $(wildcard $(PWD)/samples/*.tex)) 10texsamples := $(basename $(wildcard $(PWD)/samples/*.tex))
@@ -23,9 +24,13 @@ define dosamples
23 lualatex --output-dir=$(PWD)/TMP --shell-escape $1 >/dev/null 24 lualatex --output-dir=$(PWD)/TMP --shell-escape $1 >/dev/null
24endef 25endef
25 26
26all: $(NAME).pdf 27sty: clean
28 $(CMP) $(NAME).ins
29
30all: clean sty $(NAME).pdf
27# test -e README.md || exit 0 31# test -e README.md || exit 0
28$(NAME).pdf: $(NAME).dtx 32
33$(NAME).pdf: clean sty $(NAME).dtx
29 @ echo "Make documentation..." 34 @ echo "Make documentation..."
30 lualatex --shell-escape --recorder --interaction=batchmode $(NAME).dtx >/dev/null 35 lualatex --shell-escape --recorder --interaction=batchmode $(NAME).dtx >/dev/null
31 biber $(NAME) >/dev/null 36 biber $(NAME) >/dev/null
@@ -42,7 +47,7 @@ $(NAME).pdf: $(NAME).dtx
42 $(foreach file,$(texsamples), $(call dosamples, $(file))) 47 $(foreach file,$(texsamples), $(call dosamples, $(file)))
43 mv TMP/*.pdf samples/ 48 mv TMP/*.pdf samples/
44 49
45samples: 50samples: clean sty
46 if [ ! -d $(PWD)/TMP ]; then mkdir $(PWD)/TMP; fi 51 if [ ! -d $(PWD)/TMP ]; then mkdir $(PWD)/TMP; fi
47 cp $(PWD)/samples/*.bib $(PWD)/TMP 52 cp $(PWD)/samples/*.bib $(PWD)/TMP
48 $(foreach file,$(texsamples), $(call dosamples, $(file))) 53 $(foreach file,$(texsamples), $(call dosamples, $(file)))
@@ -51,7 +56,7 @@ samples:
51lualatex: 56lualatex:
52 lualatex --shell-escape --recorder --interaction=batchmode $(NAME).dtx >/dev/null 57 lualatex --shell-escape --recorder --interaction=batchmode $(NAME).dtx >/dev/null
53 58
54clean: lualatex 59clean:
55 rm -f $(NAME).bib $(PWD)/TMP/*.bib 60 rm -f $(NAME).bib $(PWD)/TMP/*.bib
56 rm -rf .backup 61 rm -rf .backup
57 find -iname "*~" -or -iname "*.pdf" | xargs rm -rf 62 find -iname "*~" -or -iname "*.pdf" | xargs rm -rf
@@ -95,7 +100,7 @@ zip: all
95 100
96package: distclean all 101package: distclean all
97 mkdir $(NAME)/ 102 mkdir $(NAME)/
98 cp Makefile README.md $(NAME).{dtx,pdf} $(NAME)/ 103 cp Makefile README.md $(NAME).{ins,dtx,pdf} $(NAME)/
99 cp -r samples/ $(NAME)/ 104 cp -r samples/ $(NAME)/
100 mkdir -p tex/latex/$(NAME)/ 105 mkdir -p tex/latex/$(NAME)/
101 cp $(NAME).sty tex/latex/$(NAME)/ 106 cp $(NAME).sty tex/latex/$(NAME)/