From 65a9f6a4433f36b8017e6f19b4bb616bf075d6f9 Mon Sep 17 00:00:00 2001 From: Robert Alessi Date: Tue, 18 Dec 2018 18:15:36 +0100 Subject: added 'local' option to Makefile --- Makefile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index ebfc1bd..0a148ca 100644 --- a/Makefile +++ b/Makefile @@ -7,13 +7,13 @@ UTREE = $(shell kpsewhich --var-value TEXMFHOME) 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 + 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 - lualatex -shell-escape --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 + 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} + rm -f $(NAME).{aux,fls,glo,gls,hd,idx,ilg,ind,log,out,toc} rm -f *~ rm -rf auto/ # rm -f $(NAME)_*.{bib,lua} @@ -29,6 +29,11 @@ inst: uninst all cp $(NAME).sty $(UTREE)/tex/lualatex/$(NAME) cp $(NAME).lua $(UTREE)/tex/lualatex/$(NAME) cp $(NAME).pdf $(UTREE)/doc/lualatex/$(NAME) +local: uninst + lualatex $(NAME).ins + mkdir -p $(UTREE)/{tex,source,doc}/lualatex/$(NAME) + cp $(NAME).sty $(UTREE)/tex/lualatex/$(NAME) + cp $(NAME).lua $(UTREE)/tex/lualatex/$(NAME) #install: all # sudo mkdir -p $(LOCAL)/{tex,source,doc}/lualatex/$(NAME) # sudo cp $(NAME).dtx $(LOCAL)/source/lualatex/$(NAME) @@ -51,4 +56,3 @@ package: distclean all rm -rf tex/ source/ doc/ tar czf $(NAME)-$(VERS).tar.gz $(NAME).tds.zip $(NAME)/ rm -rf $(NAME)/ - -- cgit v1.2.3