aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile41
1 files changed, 30 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index 072d5fd..1b4c7c6 100644
--- a/Makefile
+++ b/Makefile
@@ -7,26 +7,45 @@ 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 pdflatex -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 pdflatex --recorder --interaction=nonstopmode $(NAME).dtx > /dev/null 13 lualatex --shell-escape --recorder --interaction=nonstopmode $(NAME).dtx > /dev/null
14 pdflatex --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} 16 rm -f $(NAME).{aux,fls,glo,gls,hd,idx,ilg,ind,ins,log,out,toc,listing}
17distclean: clean 17 rm -f *~
18 rm -rf auto/
19distclean: clean uninst
20 rm -rf _minted-*
18 rm -f $(NAME).{pdf,sty} README 21 rm -f $(NAME).{pdf,sty} README
19inst: all 22 rm -f *.zip *.tar.gz
23inst: uninst all
20 mkdir -p $(UTREE)/{tex,source,doc}/latex/$(NAME) 24 mkdir -p $(UTREE)/{tex,source,doc}/latex/$(NAME)
21 cp $(NAME).dtx $(UTREE)/source/latex/$(NAME) 25 cp $(NAME).dtx $(UTREE)/source/latex/$(NAME)
22 cp $(NAME).sty $(UTREE)/tex/latex/$(NAME) 26 cp $(NAME).sty $(UTREE)/tex/latex/$(NAME)
23 cp $(NAME).pdf $(UTREE)/doc/latex/$(NAME) 27 cp $(NAME).pdf $(UTREE)/doc/latex/$(NAME)
24install: all 28uninst:
25 sudo mkdir -p $(LOCAL)/{tex,source,doc}/latex/$(NAME) 29 rm -rf $(UTREE)/{tex,source,doc}/latex/$(NAME)
26 sudo cp $(NAME).dtx $(LOCAL)/source/latex/$(NAME) 30#install: all
27 sudo cp $(NAME).sty $(LOCAL)/tex/latex/$(NAME) 31# sudo mkdir -p $(LOCAL)/{tex,source,doc}/latex/$(NAME)
28 sudo cp $(NAME).pdf $(LOCAL)/doc/latex/$(NAME) 32# sudo cp $(NAME).dtx $(LOCAL)/source/latex/$(NAME)
33# sudo cp $(NAME).sty $(LOCAL)/tex/latex/$(NAME)
34# sudo cp $(NAME).pdf $(LOCAL)/doc/latex/$(NAME)
29zip: all 35zip: all
30 ln -sf . $(NAME) 36 ln -sf . $(NAME)
31 zip -Drq $(PWD)/$(NAME)-$(VERS).zip $(NAME)/{README,$(NAME).{pdf,dtx}} 37 zip -Drq $(PWD)/$(NAME)-$(VERS).zip $(NAME)/{README,$(NAME).{pdf,dtx}}
32 rm $(NAME) 38 rm $(NAME)
39package: distclean all
40 mkdir $(NAME)/
41 cp README *.dtx *.pdf $(NAME)/
42 mkdir -p tex/latex/$(NAME)/
43 cp *.sty tex/latex/$(NAME)/
44 mkdir -p doc/latex/$(NAME)/
45 cp *.pdf doc/latex/$(NAME)/
46 mkdir -p source/latex/$(NAME)/
47 cp Makefile *.dtx source/latex/$(NAME)/
48 zip -r $(NAME).tds.zip tex doc source
49 rm -rf tex/ source/ doc/
50 tar czf $(NAME)-$(VERS).tar.gz $(NAME).tds.zip $(NAME)/
51 rm -rf $(NAME)/