diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/mnotes/Makefile')
-rw-r--r-- | Master/texmf-dist/doc/latex/mnotes/Makefile | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/mnotes/Makefile b/Master/texmf-dist/doc/latex/mnotes/Makefile new file mode 100644 index 00000000000..0fb9568c543 --- /dev/null +++ b/Master/texmf-dist/doc/latex/mnotes/Makefile @@ -0,0 +1,57 @@ +SHELL=/bin/bash +NAME=mnotes +VERSION=0.6 +DISTDIR=$(NAME) +ARCHIVE_NAME=/tmp/$(NAME)-$(VERSION).tar.gz +DISTFILES=$(NAME).dtx Makefile README $(NAME).ins $(NAME).pdf + +DEP=$(NAME).sty + +all: pdf + +ps: $(NAME).ps + +%.ps: %.dvi + dvips $(DVIPSOPT) $< -o $@ + +pdf: $(NAME).pdf $(DEP) + +%.pdf: %.dtx + pdflatex $< + makeindex -s gglo.ist -o $(NAME).gls $(NAME).glo + makeindex -s gind.ist -o $(NAME).ind $(NAME).idx + pdflatex $< + +dist: $(DISTFILES) + rm -rf $(DISTDIR) + mkdir $(DISTDIR) + cp -aL --parents $(DISTFILES) $(DISTDIR) + tar cfvz $(ARCHIVE_NAME) $(DISTDIR) + rm -rf $(DISTDIR) + +clean: + rm -f $(NAME).{glo,log,toc,lot,lof,idx,ilg,ind,aux,blg,bbl,dvi} + rm -f *~ + +cleandist: clean + rm -f $(NAME).{pdf,sty,ins} + +REFWARN = 'Rerun to get cross-references' +LATEXMAX = 5 + +%.dvi: %.dtx $(DEP) + latex $< + RUNS=$(LATEXMAX); \ + while [ $$RUNS -gt 0 ] ; do \ + if grep $(REFWARN) $*.log > /dev/null; \ + then latex $< ; else break; fi; \ + RUNS=`expr $$RUNS - 1`; \ + done + +$(NAME).sty: $(NAME).ins FORCE + tex $(NAME).ins + +$(NAME).ins: + pdflatex $(NAME).dtx + +FORCE: |