summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/crop/Makefile
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/crop/Makefile
Initial commit
Diffstat (limited to 'macros/latex/contrib/crop/Makefile')
-rw-r--r--macros/latex/contrib/crop/Makefile62
1 files changed, 62 insertions, 0 deletions
diff --git a/macros/latex/contrib/crop/Makefile b/macros/latex/contrib/crop/Makefile
new file mode 100644
index 0000000000..979d0d5623
--- /dev/null
+++ b/macros/latex/contrib/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:
+