diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -1,5 +1,6 @@ | |||
1 | NAME = ekdosis | 1 | NAME = ekdosis |
2 | SHELL = bash | 2 | SHELL = bash |
3 | CMP = lualatex-dev | ||
3 | PWD = $(shell pwd) | 4 | PWD = $(shell pwd) |
4 | VERS = $(shell ltxfileinfo -v $(NAME).dtx|sed -e 's/^v//') | 5 | VERS = $(shell ltxfileinfo -v $(NAME).dtx|sed -e 's/^v//') |
5 | LOCAL = $(shell kpsewhich --var-value TEXMFLOCAL) | 6 | LOCAL = $(shell kpsewhich --var-value TEXMFLOCAL) |
@@ -7,11 +8,11 @@ UTREE = $(shell kpsewhich --var-value TEXMFHOME) | |||
7 | all: $(NAME).pdf | 8 | all: $(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 |
15 | clean: | 16 | clean: |
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) |
32 | local: uninst | 33 | local: 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) |