From 2c38c4359a6f5653a2fdbfcebe128256f23dfee1 Mon Sep 17 00:00:00 2001 From: Robert Alessi Date: Sun, 24 Feb 2019 10:55:09 +0100 Subject: adapted Makefile. first lines of .sty file --- Makefile | 41 ++++++++++++++++++++++++++++++----------- 1 file changed, 30 insertions(+), 11 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 072d5fd..1b4c7c6 100644 --- a/Makefile +++ b/Makefile @@ -7,26 +7,45 @@ UTREE = $(shell kpsewhich --var-value TEXMFHOME) all: $(NAME).pdf test -e README.txt && mv README.txt README || exit 0 $(NAME).pdf: $(NAME).dtx - pdflatex -shell-escape -recorder -interaction=batchmode $(NAME).dtx >/dev/null + lualatex --shell-escape --recorder --interaction=batchmode $(NAME).dtx >/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 - pdflatex --recorder --interaction=nonstopmode $(NAME).dtx > /dev/null - pdflatex --recorder --interaction=nonstopmode $(NAME).dtx > /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} -distclean: clean + rm -f $(NAME).{aux,fls,glo,gls,hd,idx,ilg,ind,ins,log,out,toc,listing} + rm -f *~ + rm -rf auto/ +distclean: clean uninst + rm -rf _minted-* rm -f $(NAME).{pdf,sty} README -inst: all + rm -f *.zip *.tar.gz +inst: uninst all mkdir -p $(UTREE)/{tex,source,doc}/latex/$(NAME) cp $(NAME).dtx $(UTREE)/source/latex/$(NAME) cp $(NAME).sty $(UTREE)/tex/latex/$(NAME) cp $(NAME).pdf $(UTREE)/doc/latex/$(NAME) -install: all - sudo mkdir -p $(LOCAL)/{tex,source,doc}/latex/$(NAME) - sudo cp $(NAME).dtx $(LOCAL)/source/latex/$(NAME) - sudo cp $(NAME).sty $(LOCAL)/tex/latex/$(NAME) - sudo cp $(NAME).pdf $(LOCAL)/doc/latex/$(NAME) +uninst: + rm -rf $(UTREE)/{tex,source,doc}/latex/$(NAME) +#install: all +# sudo mkdir -p $(LOCAL)/{tex,source,doc}/latex/$(NAME) +# sudo cp $(NAME).dtx $(LOCAL)/source/latex/$(NAME) +# sudo cp $(NAME).sty $(LOCAL)/tex/latex/$(NAME) +# sudo cp $(NAME).pdf $(LOCAL)/doc/latex/$(NAME) zip: all ln -sf . $(NAME) zip -Drq $(PWD)/$(NAME)-$(VERS).zip $(NAME)/{README,$(NAME).{pdf,dtx}} rm $(NAME) +package: distclean all + mkdir $(NAME)/ + cp README *.dtx *.pdf $(NAME)/ + mkdir -p tex/latex/$(NAME)/ + cp *.sty tex/latex/$(NAME)/ + mkdir -p doc/latex/$(NAME)/ + cp *.pdf doc/latex/$(NAME)/ + mkdir -p source/latex/$(NAME)/ + cp Makefile *.dtx 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)/ + rm -rf $(NAME)/ -- cgit v1.2.3