diff options
author | Robert Alessi <alessi@robertalessi.net> | 2020-03-05 18:51:57 +0100 |
---|---|---|
committer | Robert Alessi <alessi@robertalessi.net> | 2020-03-05 18:51:57 +0100 |
commit | 62c39d72e806a4a57861c25c2db459c2fbae8cd9 (patch) | |
tree | 5a76c2e381dcd788d6870fbebde85f261316c645 /Makefile | |
parent | 66da23898c3b4393e8c1fca9e4c288061f36c658 (diff) | |
download | icite-62c39d72e806a4a57861c25c2db459c2fbae8cd9.tar.gz |
removed icite.ins and README.md from icite.dtx
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -4,6 +4,7 @@ PWD = $(shell pwd) | |||
4 | VERS = $(shell ltxfileinfo -v $(NAME).dtx|sed -e 's/^v//') | 4 | VERS = $(shell ltxfileinfo -v $(NAME).dtx|sed -e 's/^v//') |
5 | LOCAL = $(shell kpsewhich --var-value TEXMFLOCAL) | 5 | LOCAL = $(shell kpsewhich --var-value TEXMFLOCAL) |
6 | UTREE = $(shell kpsewhich --var-value TEXMFHOME) | 6 | UTREE = $(shell kpsewhich --var-value TEXMFHOME) |
7 | CMP = lualatex-dev | ||
7 | 8 | ||
8 | exts := md bib ins dtx html | 9 | exts := md bib ins dtx html |
9 | texsamples := $(basename $(wildcard $(PWD)/samples/*.tex)) | 10 | texsamples := $(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 |
24 | endef | 25 | endef |
25 | 26 | ||
26 | all: $(NAME).pdf | 27 | sty: clean |
28 | $(CMP) $(NAME).ins | ||
29 | |||
30 | all: 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 | ||
45 | samples: | 50 | samples: 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: | |||
51 | lualatex: | 56 | lualatex: |
52 | lualatex --shell-escape --recorder --interaction=batchmode $(NAME).dtx >/dev/null | 57 | lualatex --shell-escape --recorder --interaction=batchmode $(NAME).dtx >/dev/null |
53 | 58 | ||
54 | clean: lualatex | 59 | clean: |
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 | ||
96 | package: distclean all | 101 | package: 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)/ |