aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2018-12-18 18:15:36 +0100
committerRobert Alessi <alessi@robertalessi.net>2018-12-18 18:15:36 +0100
commit65a9f6a4433f36b8017e6f19b4bb616bf075d6f9 (patch)
tree0d82ea6cf7ff0b8166f0a9f402ff4c29dc3b8098 /Makefile
parent49c2bc685b2a7442b35ccce753eb146f3f0b76ad (diff)
downloadekdosis-65a9f6a4433f36b8017e6f19b4bb616bf075d6f9.tar.gz
added 'local' option to Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 9 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index ebfc1bd..0a148ca 100644
--- a/Makefile
+++ b/Makefile
@@ -7,13 +7,13 @@ UTREE = $(shell kpsewhich --var-value TEXMFHOME)
7all: $(NAME).pdf 7all: $(NAME).pdf
8 test -e README.txt && mv README.txt README || exit 0 8 test -e README.txt && mv README.txt README || exit 0
9$(NAME).pdf: $(NAME).dtx 9$(NAME).pdf: $(NAME).dtx
10 lualatex -shell-escape -recorder -interaction=batchmode $(NAME).dtx >/dev/null 10 lualatex --shell-escape -recorder -interaction=batchmode $(NAME).dtx >/dev/null
11 if [ -f $(NAME).glo ]; then makeindex -q -s gglo.ist -o $(NAME).gls $(NAME).glo; fi 11 if [ -f $(NAME).glo ]; then makeindex -q -s gglo.ist -o $(NAME).gls $(NAME).glo; fi
12 if [ -f $(NAME).idx ]; then makeindex -q -s gind.ist -o $(NAME).ind $(NAME).idx; fi 12 if [ -f $(NAME).idx ]; then makeindex -q -s gind.ist -o $(NAME).ind $(NAME).idx; fi
13 lualatex -shell-escape --recorder --interaction=nonstopmode $(NAME).dtx > /dev/null 13 lualatex --shell-escape --recorder --interaction=nonstopmode $(NAME).dtx > /dev/null
14 lualatex -shell-escape --recorder --interaction=nonstopmode $(NAME).dtx > /dev/null 14 lualatex --shell-escape --recorder --interaction=nonstopmode $(NAME).dtx > /dev/null
15clean: 15clean:
16 rm -f $(NAME).{aux,fls,glo,gls,hd,idx,ilg,ind,ins,log,out,toc} 16 rm -f $(NAME).{aux,fls,glo,gls,hd,idx,ilg,ind,log,out,toc}
17 rm -f *~ 17 rm -f *~
18 rm -rf auto/ 18 rm -rf auto/
19# rm -f $(NAME)_*.{bib,lua} 19# rm -f $(NAME)_*.{bib,lua}
@@ -29,6 +29,11 @@ inst: uninst all
29 cp $(NAME).sty $(UTREE)/tex/lualatex/$(NAME) 29 cp $(NAME).sty $(UTREE)/tex/lualatex/$(NAME)
30 cp $(NAME).lua $(UTREE)/tex/lualatex/$(NAME) 30 cp $(NAME).lua $(UTREE)/tex/lualatex/$(NAME)
31 cp $(NAME).pdf $(UTREE)/doc/lualatex/$(NAME) 31 cp $(NAME).pdf $(UTREE)/doc/lualatex/$(NAME)
32local: uninst
33 lualatex $(NAME).ins
34 mkdir -p $(UTREE)/{tex,source,doc}/lualatex/$(NAME)
35 cp $(NAME).sty $(UTREE)/tex/lualatex/$(NAME)
36 cp $(NAME).lua $(UTREE)/tex/lualatex/$(NAME)
32#install: all 37#install: all
33# sudo mkdir -p $(LOCAL)/{tex,source,doc}/lualatex/$(NAME) 38# sudo mkdir -p $(LOCAL)/{tex,source,doc}/lualatex/$(NAME)
34# sudo cp $(NAME).dtx $(LOCAL)/source/lualatex/$(NAME) 39# sudo cp $(NAME).dtx $(LOCAL)/source/lualatex/$(NAME)
@@ -51,4 +56,3 @@ package: distclean all
51 rm -rf tex/ source/ doc/ 56 rm -rf tex/ source/ doc/
52 tar czf $(NAME)-$(VERS).tar.gz $(NAME).tds.zip $(NAME)/ 57 tar czf $(NAME)-$(VERS).tar.gz $(NAME).tds.zip $(NAME)/
53 rm -rf $(NAME)/ 58 rm -rf $(NAME)/
54