diff options
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -2,20 +2,21 @@ pkg := arabluatex | |||
2 | ver := $(shell ltxfileinfo -v $(pkg).dtx|sed -e 's/^v//') | 2 | ver := $(shell ltxfileinfo -v $(pkg).dtx|sed -e 's/^v//') |
3 | TEXMFDIR := $(shell kpsewhich -expand-var='$$TEXMFHOME') | 3 | TEXMFDIR := $(shell kpsewhich -expand-var='$$TEXMFHOME') |
4 | HOMEDIR := $$HOME | 4 | HOMEDIR := $$HOME |
5 | CMP = lualatex-dev | ||
5 | 6 | ||
6 | sty: clean | 7 | sty: clean |
7 | lualatex $(pkg).ins | 8 | $(CMP) $(pkg).ins |
8 | 9 | ||
9 | doc: clean sty | 10 | doc: clean sty |
10 | lualatex --shell-escape $(pkg).dtx | 11 | $(CMP) --shell-escape $(pkg).dtx |
11 | biber arabluatex | 12 | biber arabluatex |
12 | lualatex --shell-escape $(pkg).dtx | 13 | $(CMP) --shell-escape $(pkg).dtx |
13 | makeindex -s gind.ist -o $(pkg).ind $(pkg).idx | 14 | makeindex -s gind.ist -o $(pkg).ind $(pkg).idx |
14 | makeindex -s gglo.ist -o $(pkg).gls $(pkg).glo | 15 | makeindex -s gglo.ist -o $(pkg).gls $(pkg).glo |
15 | lualatex --shell-escape $(pkg).dtx | 16 | $(CMP) --shell-escape $(pkg).dtx |
16 | lualatex --shell-escape $(pkg).dtx | 17 | $(CMP) --shell-escape $(pkg).dtx |
17 | for i in samples/*.tex; \ | 18 | for i in samples/*.tex; \ |
18 | do latexmk -outdir=TMP -lualatex -e '$$lualatex=q/lualatex %O --shell-escape %S/' $$i; \ | 19 | do latexmk -outdir=TMP -lualatex -e '$$lualatex=q/$(CMP) %O --shell-escape %S/' $$i; \ |
19 | done | 20 | done |
20 | mv TMP/*.pdf samples/ | 21 | mv TMP/*.pdf samples/ |
21 | 22 | ||