diff options
author | Karl Berry <karl@freefriends.org> | 2014-07-26 23:03:58 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2014-07-26 23:03:58 +0000 |
commit | f24688afffa8c38ec19dfb9cd0a0a3e5d4267f24 (patch) | |
tree | 2caf1cdd038a911514f4f0ebebbc5d194cde18cb /Master/texmf-dist/doc/latex/listlbls/Makefile | |
parent | 4a9987c60ecf28083f2701f4a5abfa724d6a56f0 (diff) |
listlbls (26jul14)
git-svn-id: svn://tug.org/texlive/trunk@34735 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/listlbls/Makefile')
-rw-r--r-- | Master/texmf-dist/doc/latex/listlbls/Makefile | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/listlbls/Makefile b/Master/texmf-dist/doc/latex/listlbls/Makefile new file mode 100644 index 00000000000..60063219279 --- /dev/null +++ b/Master/texmf-dist/doc/latex/listlbls/Makefile @@ -0,0 +1,35 @@ +NAME = listlbls +SHELL = bash +PWD = $(shell pwd) +TEMP := $(shell mktemp -d) +TDIR = $(TEMP)/$(NAME) +VERS = $(shell ltxfileinfo -v $(NAME).dtx) +LOCAL = $(shell kpsewhich --var-value TEXMFLOCAL) +UTREE = $(shell kpsewhich --var-value TEXMFHOME) + +all: $(NAME).pdf clean + test -e README.txt && mv README.txt README || exit 0 +$(NAME).pdf: $(NAME).dtx + pdflatex -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 +clean: + rm -f $(NAME).{aux,fls,glo,gls,hd,idx,ilg,ind,ins,log,out} +distclean: clean + rm -f $(NAME).{pdf,sty} README +inst: 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) +zip: all + mkdir $(TDIR) + cp $(NAME).{pdf,dtx} Makefile README $(TDIR) + cd $(TEMP); zip -Drq $(PWD)/$(NAME)-$(VERS).zip $(NAME) |