diff options
author | Robert Alessi <alessi@robertalessi.net> | 2016-02-22 10:06:28 +0100 |
---|---|---|
committer | Robert Alessi <alessi@robertalessi.net> | 2016-02-22 10:06:28 +0100 |
commit | 041154d5339e42601ed04b6e2a23d53ffaae1022 (patch) | |
tree | 972514791a346666c2d77536646e298d7969a393 /makefile | |
download | arabluatex-041154d5339e42601ed04b6e2a23d53ffaae1022.tar.gz |
initial project version
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/makefile b/makefile new file mode 100644 index 0000000..1875576 --- /dev/null +++ b/makefile | |||
@@ -0,0 +1,32 @@ | |||
1 | pkg=arabluatex | ||
2 | |||
3 | sty: clean | ||
4 | lualatex $(pkg).ins | ||
5 | |||
6 | doc: clean sty | ||
7 | lualatex $(pkg).dtx | ||
8 | makeindex -s gind.ist -o $(pkg).ind $(pkg).idx | ||
9 | makeindex -s gglo.ist -o $(pkg).gls $(pkg).glo | ||
10 | lualatex $(pkg).dtx | ||
11 | lualatex $(pkg).dtx | ||
12 | |||
13 | all: clean sty doc | ||
14 | |||
15 | package: clean sty | ||
16 | cp ~/texmf/tex/lualatex/arabluatex/$(pkg).sty \ | ||
17 | ~/texmf/tex/lualatex/arabluatex/$(pkg).sty-`date +%s` | ||
18 | cp ~/texmf/tex/lualatex/arabluatex/$(pkg).lua \ | ||
19 | ~/texmf/tex/lualatex/arabluatex/$(pkg).lua-`date +%s` | ||
20 | cp ~/texmf/tex/lualatex/arabluatex/$(pkg)_voc.lua \ | ||
21 | ~/texmf/tex/lualatex/arabluatex/$(pkg)_voc.lua-`date +%s` | ||
22 | cp ~/texmf/tex/lualatex/arabluatex/$(pkg)_novoc.lua \ | ||
23 | ~/texmf/tex/lualatex/arabluatex/$(pkg)_novoc.lua-`date +%s` | ||
24 | cp $(pkg)*.{sty,lua} ~/texmf/tex/lualatex/arabluatex | ||
25 | |||
26 | clean: | ||
27 | rm -rf saved/ | ||
28 | mkdir saved | ||
29 | cp *.{lua,ins,dtx} makefile saved | ||
30 | rm *.* | ||
31 | cp saved/* . | ||
32 | rm -rf saved/ | ||