pkg=arabluatex sty: clean lualatex $(pkg).ins doc: clean sty lualatex $(pkg).dtx biber arabluatex 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 local: clean sty if [ ! -d "~/texmf/tex/lualatex/arabluatex" ]; then \ mkdir -p ~/texmf/tex/lualatex/arabluatex; \ fi cp $(pkg)*.{sty,lua} ~/texmf/tex/lualatex/arabluatex package: clean all pandoc README.tex -o README.md mkdir arabluatex cp *.lua *.ins *.dtx *.bib *.md *.pdf arabluatex/ mkdir -p tex/lualatex/arabluatex/ cp *.lua *.sty tex/lualatex/arabluatex/ mkdir -p doc/lualatex/arabluatex/ cp *.pdf doc/lualatex/arabluatex/ mkdir -p source/lualatex/arabluatex/ cp *.ins *.dtx *.bib *.tex source/lualatex/arabluatex/ zip -r arabluatex.tds.zip tex doc source tar czf arabluatex.tar.gz arabluatex.tds.zip arabluatex/ clean: rm -rf ~/texmf/tex/lualatex/arabluatex/ rm -rf tex/ doc/ source/ rm -rf arabluatex/ rm -rf saved/ mkdir saved cp *.{lua,ins,dtx,bib,tex} makefile saved rm *.* cp saved/* . rm -rf saved/