aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 6449ff6..e4e89a2 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,6 @@
1NAME = ekdosis 1NAME = ekdosis
2SHELL = bash 2SHELL = bash
3CMP = lualatex-dev
3PWD = $(shell pwd) 4PWD = $(shell pwd)
4VERS = $(shell ltxfileinfo -v $(NAME).dtx|sed -e 's/^v//') 5VERS = $(shell ltxfileinfo -v $(NAME).dtx|sed -e 's/^v//')
5LOCAL = $(shell kpsewhich --var-value TEXMFLOCAL) 6LOCAL = $(shell kpsewhich --var-value TEXMFLOCAL)
@@ -7,11 +8,11 @@ UTREE = $(shell kpsewhich --var-value TEXMFHOME)
7all: $(NAME).pdf 8all: $(NAME).pdf
8 test -e README.txt && mv README.txt README || exit 0 9 test -e README.txt && mv README.txt README || exit 0
9$(NAME).pdf: $(NAME).dtx 10$(NAME).pdf: $(NAME).dtx
10 lualatex --shell-escape -recorder -interaction=batchmode $(NAME).dtx >/dev/null 11 $(CMP) --shell-escape -recorder -interaction=batchmode $(NAME).dtx >/dev/null
11 if [ -f $(NAME).glo ]; then makeindex -q -s gglo.ist -o $(NAME).gls $(NAME).glo; fi 12 if [ -f $(NAME).glo ]; then makeindex -q -s gglo.ist -o $(NAME).gls $(NAME).glo; fi
12 if [ -f $(NAME).idx ]; then makeindex -q -s gind.ist -o $(NAME).ind $(NAME).idx; fi 13 if [ -f $(NAME).idx ]; then makeindex -q -s gind.ist -o $(NAME).ind $(NAME).idx; fi
13 lualatex --shell-escape --recorder --interaction=nonstopmode $(NAME).dtx > /dev/null 14 $(CMP) --shell-escape --recorder --interaction=nonstopmode $(NAME).dtx > /dev/null
14 lualatex --shell-escape --recorder --interaction=nonstopmode $(NAME).dtx > /dev/null 15 $(CMP) --shell-escape --recorder --interaction=nonstopmode $(NAME).dtx > /dev/null
15clean: 16clean:
16 rm -f $(NAME).{aux,fls,glo,gls,hd,idx,ilg,ind,log,out,toc,pyg} 17 rm -f $(NAME).{aux,fls,glo,gls,hd,idx,ilg,ind,log,out,toc,pyg}
17 rm -f *~ 18 rm -f *~
@@ -30,7 +31,7 @@ inst: uninst all
30 cp $(NAME).lua $(UTREE)/tex/lualatex/$(NAME) 31 cp $(NAME).lua $(UTREE)/tex/lualatex/$(NAME)
31 cp $(NAME).pdf $(UTREE)/doc/lualatex/$(NAME) 32 cp $(NAME).pdf $(UTREE)/doc/lualatex/$(NAME)
32local: uninst 33local: uninst
33 lualatex $(NAME).ins 34 $(CMP) $(NAME).ins
34 mkdir -p $(UTREE)/{tex,source,doc}/lualatex/$(NAME) 35 mkdir -p $(UTREE)/{tex,source,doc}/lualatex/$(NAME)
35 cp $(NAME).sty $(UTREE)/tex/lualatex/$(NAME) 36 cp $(NAME).sty $(UTREE)/tex/lualatex/$(NAME)
36 cp $(NAME).lua $(UTREE)/tex/lualatex/$(NAME) 37 cp $(NAME).lua $(UTREE)/tex/lualatex/$(NAME)