aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 12 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 1b4c7c6..237b560 100644
--- a/Makefile
+++ b/Makefile
@@ -8,12 +8,15 @@ 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 biber $(NAME) >/dev/null
11 if [ -f $(NAME).glo ]; then makeindex -q -s gglo.ist -o $(NAME).gls $(NAME).glo; fi 12 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 13 if [ -f $(NAME).idx ]; then makeindex -q -s gind.ist -o $(NAME).ind $(NAME).idx; fi
14 texindy loccit.idx >/dev/null
13 lualatex --shell-escape --recorder --interaction=nonstopmode $(NAME).dtx > /dev/null 15 lualatex --shell-escape --recorder --interaction=nonstopmode $(NAME).dtx > /dev/null
14 lualatex --shell-escape --recorder --interaction=nonstopmode $(NAME).dtx > /dev/null 16 lualatex --shell-escape --recorder --interaction=nonstopmode $(NAME).dtx > /dev/null
15clean: 17clean:
16 rm -f $(NAME).{aux,fls,glo,gls,hd,idx,ilg,ind,ins,log,out,toc,listing} 18 rm -f $(NAME).{aux,fls,glo,gls,hd,idx,ilg,ind,log,out,toc,listing,bcf,bib,bbl,blg,run.xml}
19 rm -f loccit.*
17 rm -f *~ 20 rm -f *~
18 rm -rf auto/ 21 rm -rf auto/
19distclean: clean uninst 22distclean: clean uninst
@@ -25,6 +28,10 @@ inst: uninst all
25 cp $(NAME).dtx $(UTREE)/source/latex/$(NAME) 28 cp $(NAME).dtx $(UTREE)/source/latex/$(NAME)
26 cp $(NAME).sty $(UTREE)/tex/latex/$(NAME) 29 cp $(NAME).sty $(UTREE)/tex/latex/$(NAME)
27 cp $(NAME).pdf $(UTREE)/doc/latex/$(NAME) 30 cp $(NAME).pdf $(UTREE)/doc/latex/$(NAME)
31local: uninst
32 lualatex $(NAME).ins
33 mkdir -p $(UTREE)/{tex,source,doc}/latex/$(NAME)
34 cp $(NAME).sty $(UTREE)/tex/latex/$(NAME)
28uninst: 35uninst:
29 rm -rf $(UTREE)/{tex,source,doc}/latex/$(NAME) 36 rm -rf $(UTREE)/{tex,source,doc}/latex/$(NAME)
30#install: all 37#install: all
@@ -38,13 +45,13 @@ zip: all
38 rm $(NAME) 45 rm $(NAME)
39package: distclean all 46package: distclean all
40 mkdir $(NAME)/ 47 mkdir $(NAME)/
41 cp README *.dtx *.pdf $(NAME)/ 48 cp README $(NAME).{dtx,ins,pdf} $(NAME)/
42 mkdir -p tex/latex/$(NAME)/ 49 mkdir -p tex/latex/$(NAME)/
43 cp *.sty tex/latex/$(NAME)/ 50 cp $(NAME).sty tex/latex/$(NAME)/
44 mkdir -p doc/latex/$(NAME)/ 51 mkdir -p doc/latex/$(NAME)/
45 cp *.pdf doc/latex/$(NAME)/ 52 cp $(NAME).pdf doc/latex/$(NAME)/
46 mkdir -p source/latex/$(NAME)/ 53 mkdir -p source/latex/$(NAME)/
47 cp Makefile *.dtx source/latex/$(NAME)/ 54 cp Makefile README $(NAME).{dtx,ins} source/latex/$(NAME)/
48 zip -r $(NAME).tds.zip tex doc source 55 zip -r $(NAME).tds.zip tex doc source
49 rm -rf tex/ source/ doc/ 56 rm -rf tex/ source/ doc/
50 tar czf $(NAME)-$(VERS).tar.gz $(NAME).tds.zip $(NAME)/ 57 tar czf $(NAME)-$(VERS).tar.gz $(NAME).tds.zip $(NAME)/