aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile32
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 @@
1pkg=arabluatex
2
3sty: clean
4 lualatex $(pkg).ins
5
6doc: 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
13all: clean sty doc
14
15package: 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
26clean:
27 rm -rf saved/
28 mkdir saved
29 cp *.{lua,ins,dtx} makefile saved
30 rm *.*
31 cp saved/* .
32 rm -rf saved/