aboutsummaryrefslogtreecommitdiff
path: root/makefile
blob: 5f7f56f330a878cb47b50ed4a6786ee8673265ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
pkg=arabluatex

sty: clean
	lualatex $(pkg).ins

doc: clean sty
	lualatex $(pkg).dtx
	makeindex -s gind.ist -o $(pkg).ind $(pkg).idx
	makeindex -s gglo.ist -o $(pkg).gls $(pkg).glo
	lualatex $(pkg).dtx
	lualatex $(pkg).dtx

all: clean sty doc

package: clean sty
#	cp ~/texmf/tex/lualatex/arabluatex/$(pkg).sty \
#		~/texmf/tex/lualatex/arabluatex/$(pkg).sty-`date +%s`
#	cp ~/texmf/tex/lualatex/arabluatex/$(pkg).lua \
#		~/texmf/tex/lualatex/arabluatex/$(pkg).lua-`date +%s`
#	cp ~/texmf/tex/lualatex/arabluatex/$(pkg)_voc.lua \
#		~/texmf/tex/lualatex/arabluatex/$(pkg)_voc.lua-`date +%s`
#	cp ~/texmf/tex/lualatex/arabluatex/$(pkg)_novoc.lua \
#		~/texmf/tex/lualatex/arabluatex/$(pkg)_novoc.lua-`date +%s`
	cp $(pkg)*.{sty,lua} ~/texmf/tex/lualatex/arabluatex

clean:
	rm -rf saved/
	mkdir saved
	cp *.{lua,ins,dtx} makefile saved
	rm *.*
	cp saved/* .
	rm -rf saved/