From 6455020f533d6c527c2797b2deb4b3091341e912 Mon Sep 17 00:00:00 2001 From: Robert Alessi Date: Mon, 4 Mar 2019 13:32:58 +0100 Subject: adapted Makefile and started documenting --- Makefile | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 1b4c7c6..237b560 100644 --- a/Makefile +++ b/Makefile @@ -8,12 +8,15 @@ all: $(NAME).pdf test -e README.txt && mv README.txt README || exit 0 $(NAME).pdf: $(NAME).dtx lualatex --shell-escape --recorder --interaction=batchmode $(NAME).dtx >/dev/null + biber $(NAME) >/dev/null if [ -f $(NAME).glo ]; then makeindex -q -s gglo.ist -o $(NAME).gls $(NAME).glo; fi if [ -f $(NAME).idx ]; then makeindex -q -s gind.ist -o $(NAME).ind $(NAME).idx; fi + texindy loccit.idx >/dev/null lualatex --shell-escape --recorder --interaction=nonstopmode $(NAME).dtx > /dev/null lualatex --shell-escape --recorder --interaction=nonstopmode $(NAME).dtx > /dev/null clean: - rm -f $(NAME).{aux,fls,glo,gls,hd,idx,ilg,ind,ins,log,out,toc,listing} + rm -f $(NAME).{aux,fls,glo,gls,hd,idx,ilg,ind,log,out,toc,listing,bcf,bib,bbl,blg,run.xml} + rm -f loccit.* rm -f *~ rm -rf auto/ distclean: clean uninst @@ -25,6 +28,10 @@ inst: uninst all cp $(NAME).dtx $(UTREE)/source/latex/$(NAME) cp $(NAME).sty $(UTREE)/tex/latex/$(NAME) cp $(NAME).pdf $(UTREE)/doc/latex/$(NAME) +local: uninst + lualatex $(NAME).ins + mkdir -p $(UTREE)/{tex,source,doc}/latex/$(NAME) + cp $(NAME).sty $(UTREE)/tex/latex/$(NAME) uninst: rm -rf $(UTREE)/{tex,source,doc}/latex/$(NAME) #install: all @@ -38,13 +45,13 @@ zip: all rm $(NAME) package: distclean all mkdir $(NAME)/ - cp README *.dtx *.pdf $(NAME)/ + cp README $(NAME).{dtx,ins,pdf} $(NAME)/ mkdir -p tex/latex/$(NAME)/ - cp *.sty tex/latex/$(NAME)/ + cp $(NAME).sty tex/latex/$(NAME)/ mkdir -p doc/latex/$(NAME)/ - cp *.pdf doc/latex/$(NAME)/ + cp $(NAME).pdf doc/latex/$(NAME)/ mkdir -p source/latex/$(NAME)/ - cp Makefile *.dtx source/latex/$(NAME)/ + cp Makefile README $(NAME).{dtx,ins} source/latex/$(NAME)/ zip -r $(NAME).tds.zip tex doc source rm -rf tex/ source/ doc/ tar czf $(NAME)-$(VERS).tar.gz $(NAME).tds.zip $(NAME)/ -- cgit v1.2.3