diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -7,13 +7,13 @@ UTREE = $(shell kpsewhich --var-value TEXMFHOME) | |||
7 | all: $(NAME).pdf | 7 | all: $(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 |
15 | clean: | 15 | clean: |
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) |
32 | local: 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 | |||