aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2020-03-05 19:05:38 +0100
committerRobert Alessi <alessi@robertalessi.net>2020-03-05 19:05:38 +0100
commit9203f515e98c3e73051142499082fbe93761d30b (patch)
tree00514f5563d937dfc0ded12eff257652d0da8ceb
parent62c39d72e806a4a57861c25c2db459c2fbae8cd9 (diff)
downloadicite-9203f515e98c3e73051142499082fbe93761d30b.tar.gz
MakeFile: use lualatex-dev by default, include samples/ in doctree
-rw-r--r--Makefile22
1 files changed, 12 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index 63e0b26..01c10eb 100644
--- a/Makefile
+++ b/Makefile
@@ -15,13 +15,13 @@ findopts := $(foreach ext,$(exts),-or -iname "*.$(ext)")
15# $(if $(wildcard $(PWD)/TMP/$(notdir $1).bcf),biber $(PWD)/TMP/$(notdir $1),) 15# $(if $(wildcard $(PWD)/TMP/$(notdir $1).bcf),biber $(PWD)/TMP/$(notdir $1),)
16 16
17define dosamples 17define dosamples
18 lualatex --output-dir=$(PWD)/TMP --shell-escape $1 >/dev/null 18 $(CMP) --output-dir=$(PWD)/TMP --shell-escape $1 >/dev/null
19 lualatex --output-dir=$(PWD)/TMP --shell-escape $1 >/dev/null 19 $(CMP) --output-dir=$(PWD)/TMP --shell-escape $1 >/dev/null
20 if [ -f $(PWD)/TMP/$(notdir $1)-primary.idx ]; \ 20 if [ -f $(PWD)/TMP/$(notdir $1)-primary.idx ]; \
21 then texindy -M $(PWD)/TMP/$(notdir $1).xdy $(PWD)/TMP/$(notdir $1)-primary.idx >/dev/null; fi 21 then texindy -M $(PWD)/TMP/$(notdir $1).xdy $(PWD)/TMP/$(notdir $1)-primary.idx >/dev/null; fi
22 if [ -f $(PWD)/TMP/$(notdir $1).bcf ]; then biber $(PWD)/TMP/$(notdir $1) >/dev/null; fi 22 if [ -f $(PWD)/TMP/$(notdir $1).bcf ]; then biber $(PWD)/TMP/$(notdir $1) >/dev/null; fi
23 lualatex --output-dir=$(PWD)/TMP --shell-escape $1 >/dev/null 23 $(CMP) --output-dir=$(PWD)/TMP --shell-escape $1 >/dev/null
24 lualatex --output-dir=$(PWD)/TMP --shell-escape $1 >/dev/null 24 $(CMP) --output-dir=$(PWD)/TMP --shell-escape $1 >/dev/null
25endef 25endef
26 26
27sty: clean 27sty: clean
@@ -32,15 +32,15 @@ all: clean sty $(NAME).pdf
32 32
33$(NAME).pdf: clean sty $(NAME).dtx 33$(NAME).pdf: clean sty $(NAME).dtx
34 @ echo "Make documentation..." 34 @ echo "Make documentation..."
35 lualatex --shell-escape --recorder --interaction=batchmode $(NAME).dtx >/dev/null 35 $(CMP) --shell-escape --recorder --interaction=batchmode $(NAME).dtx >/dev/null
36 biber $(NAME) >/dev/null 36 biber $(NAME) >/dev/null
37 lualatex --shell-escape --recorder --interaction=batchmode $(NAME).dtx >/dev/null 37 $(CMP) --shell-escape --recorder --interaction=batchmode $(NAME).dtx >/dev/null
38 if [ -f $(NAME).glo ]; then makeindex -q -s gglo.ist -o $(NAME).gls $(NAME).glo; fi 38 if [ -f $(NAME).glo ]; then makeindex -q -s gglo.ist -o $(NAME).gls $(NAME).glo; fi
39 if [ -f $(NAME).idx ]; then makeindex -q -s gind.ist -o $(NAME).ind $(NAME).idx; fi 39 if [ -f $(NAME).idx ]; then makeindex -q -s gind.ist -o $(NAME).ind $(NAME).idx; fi
40 if [ -f loccit.idx ]; then texindy -M icite.xdy loccit.idx >/dev/null; fi 40 if [ -f loccit.idx ]; then texindy -M icite.xdy loccit.idx >/dev/null; fi
41 if [ -f primary.idx ]; then texindy -M icite.xdy primary.idx >/dev/null; fi 41 if [ -f primary.idx ]; then texindy -M icite.xdy primary.idx >/dev/null; fi
42 lualatex --shell-escape --recorder --interaction=nonstopmode $(NAME).dtx > /dev/null 42 $(CMP) --shell-escape --recorder --interaction=nonstopmode $(NAME).dtx > /dev/null
43 lualatex --shell-escape --recorder --interaction=nonstopmode $(NAME).dtx > /dev/null 43 $(CMP) --shell-escape --recorder --interaction=nonstopmode $(NAME).dtx > /dev/null
44 @ echo "Make sample files..." 44 @ echo "Make sample files..."
45 if [ ! -d $(PWD)/TMP ]; then mkdir $(PWD)/TMP; fi 45 if [ ! -d $(PWD)/TMP ]; then mkdir $(PWD)/TMP; fi
46 cp $(PWD)/samples/*.bib $(PWD)/TMP 46 cp $(PWD)/samples/*.bib $(PWD)/TMP
@@ -54,7 +54,7 @@ samples: clean sty
54 mv TMP/*.pdf samples/ 54 mv TMP/*.pdf samples/
55 55
56lualatex: 56lualatex:
57 lualatex --shell-escape --recorder --interaction=batchmode $(NAME).dtx >/dev/null 57 $(CMP) --shell-escape --recorder --interaction=batchmode $(NAME).dtx >/dev/null
58 58
59clean: 59clean:
60 rm -f $(NAME).bib $(PWD)/TMP/*.bib 60 rm -f $(NAME).bib $(PWD)/TMP/*.bib
@@ -75,9 +75,10 @@ inst: uninst all
75 cp $(NAME).dtx $(UTREE)/source/latex/$(NAME) 75 cp $(NAME).dtx $(UTREE)/source/latex/$(NAME)
76 cp $(NAME).sty $(UTREE)/tex/latex/$(NAME) 76 cp $(NAME).sty $(UTREE)/tex/latex/$(NAME)
77 cp $(NAME).pdf $(UTREE)/doc/latex/$(NAME) 77 cp $(NAME).pdf $(UTREE)/doc/latex/$(NAME)
78 cp -r samples/ $(UTREE)/doc/latex/$(NAME)
78 79
79local: uninst 80local: uninst
80 lualatex $(NAME).ins 81 $(CMP) $(NAME).ins
81 mkdir -p $(UTREE)/{tex,source,doc}/latex/$(NAME) 82 mkdir -p $(UTREE)/{tex,source,doc}/latex/$(NAME)
82 cp $(NAME).sty $(UTREE)/tex/latex/$(NAME) 83 cp $(NAME).sty $(UTREE)/tex/latex/$(NAME)
83 84
@@ -89,6 +90,7 @@ install: all
89 sudo cp $(NAME).dtx $(LOCAL)/source/latex/$(NAME) 90 sudo cp $(NAME).dtx $(LOCAL)/source/latex/$(NAME)
90 sudo cp $(NAME).sty $(LOCAL)/tex/latex/$(NAME) 91 sudo cp $(NAME).sty $(LOCAL)/tex/latex/$(NAME)
91 sudo cp $(NAME).pdf $(LOCAL)/doc/latex/$(NAME) 92 sudo cp $(NAME).pdf $(LOCAL)/doc/latex/$(NAME)
93 cp -r samples/ $(LOCAL)/doc/latex/$(NAME)
92 94
93uninstall: 95uninstall:
94 rm -rf $(LOCAL)/{tex,source,doc}/latex/$(NAME) 96 rm -rf $(LOCAL)/{tex,source,doc}/latex/$(NAME)