aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile19
1 files changed, 17 insertions, 2 deletions
diff --git a/makefile b/makefile
index d6a1e7d..19012c3 100644
--- a/makefile
+++ b/makefile
@@ -33,6 +33,21 @@ local: clean sty
33 fi 33 fi
34 cp $(pkg)*.el $(HOMEDIR)/.emacs.d/auctex/auto 34 cp $(pkg)*.el $(HOMEDIR)/.emacs.d/auctex/auto
35 35
36inst: doc
37 if [ ! -d "$(TEXMFDIR)/tex/lualatex/arabluatex" ]; then \
38 mkdir -p $(TEXMFDIR)/tex/lualatex/arabluatex; \
39 fi
40 cp $(pkg)*.{sty,lua} $(TEXMFDIR)/tex/lualatex/arabluatex
41 if [ ! -d "$(HOMEDIR)/.emacs.d/auctex/auto" ]; then \
42 mkdir -p $(HOMEDIR)/.emacs.d/auctex/auto; \
43 fi
44 cp $(pkg)*.el $(HOMEDIR)/.emacs.d/auctex/auto
45 if [ ! -d "$(TEXMFDIR)/doc/lualatex/arabluatex" ]; then \
46 mkdir -p $(TEXMFDIR)/doc/lualatex/arabluatex; \
47 fi
48 cp $(pkg).pdf $(TEXMFDIR)/doc/lualatex/arabluatex
49 cp -r samples/ $(TEXMFDIR)/doc/lualatex/arabluatex
50
36auctex: clean 51auctex: clean
37 if [ ! -d "$(HOMEDIR)/.emacs.d/auctex/auto" ]; then \ 52 if [ ! -d "$(HOMEDIR)/.emacs.d/auctex/auto" ]; then \
38 mkdir -p $(HOMEDIR)/.emacs.d/auctex/auto; \ 53 mkdir -p $(HOMEDIR)/.emacs.d/auctex/auto; \
@@ -54,7 +69,7 @@ package: clean all
54 tar czf arabluatex-$(ver).tar.gz arabluatex.tds.zip arabluatex/ 69 tar czf arabluatex-$(ver).tar.gz arabluatex.tds.zip arabluatex/
55 70
56clean: 71clean:
57 rm -rf $(TEXMFDIR)/tex/lualatex/arabluatex/ 72 rm -rf $(TEXMFDIR)/{tex,doc}/lualatex/arabluatex/
58 rm -rf $(HOMEDIR)/.emacs.d/auctex/auto/arabluatex*.{el,elc} 73 rm -rf $(HOMEDIR)/.emacs.d/auctex/auto/arabluatex*.{el,elc}
59 rm -rf tex/ doc/ source/ auto/ 74 rm -rf tex/ doc/ source/ auto/
60 rm -rf arabluatex/ 75 rm -rf arabluatex/
@@ -68,4 +83,4 @@ clean:
68 pandoc -s README.tex -o README.md && sed -i 's/{#.*}//g' README.md 83 pandoc -s README.tex -o README.md && sed -i 's/{#.*}//g' README.md
69 pandoc -s README.tex -o about.html 84 pandoc -s README.tex -o about.html
70 85
71.PHONY: sty doc all local auctex package clean 86.PHONY: sty doc all local inst auctex package clean