diff options
author | Karl Berry <karl@freefriends.org> | 2006-01-11 23:52:00 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-01-11 23:52:00 +0000 |
commit | 1e587951420b047f0afbddc5c198ab6c402843dd (patch) | |
tree | 503f97f15cf3e95cf6fa4ec32357f2742296dd90 /Master/texmf-dist/source/latex/crop/Makefile | |
parent | 44d707abed5965cfcb6d174a74a63139925d2f62 (diff) |
trunk/Master/texmf-dist/source/latex/crop
git-svn-id: svn://tug.org/texlive/trunk@204 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/crop/Makefile')
-rw-r--r-- | Master/texmf-dist/source/latex/crop/Makefile | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/latex/crop/Makefile b/Master/texmf-dist/source/latex/crop/Makefile new file mode 100644 index 00000000000..979d0d5623a --- /dev/null +++ b/Master/texmf-dist/source/latex/crop/Makefile @@ -0,0 +1,62 @@ +# $Id: Makefile,v 1.11 2002/11/22 08:34:30 m Rel $ + +NAME=crop +ARCHIVE_NAME=$(NAME).tar.gz +ARCHIVE_CONTENTS=$(NAME).dtx Makefile $(NAME).txt $(NAME).ins +MAKEIDXOPT= +DVIPSOPT= #-Pcmz -Pamz +DEP=$(NAME).sty + +all: $(NAME).ps + +print: $(NAME).ps + psbook $(NAME).ps|psnup -2|psselect -e|lpr + @ echo -n revert paper stack and hit return + @ read key + psbook $(NAME).ps|psnup -2|psselect -o -r|lpr + +ps: $(NAME).ps + +%.ps: %.dvi + dvips $(DVIPSOPT) $< -o $@ + +pdf: $(NAME).pdf + +%.pdf: %.dtx + pdflatex $< + +arc: archive + +archive: $(NAME).ins + @ tar -czf $(ARCHIVE_NAME) $(ARCHIVE_CONTENTS) + @ echo $(ARCHIVE_NAME): + @ echo ==================== + @ tar -tzf $(ARCHIVE_NAME) + +clean: + rm -f $(NAME).{log,toc,lot,lof,idx,ilg,ind,aux,blg,bbl,dvi,ins} + +distclean: clean + rm -f $(NAME).{ps,pdf,sty} $(ARCHIVE_NAME) + + +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: + latex $(NAME).dtx + +FORCE: + |