LIBS = $$HOME/lib/pstricks.m4 $$HOME/lib/libcct.m4 $$HOME/lib/liblog.m4 DOC = tcct DVIPSOPTS = -t landscape PICS = cct.tex DPIC = dpic -p MARGS = DOC="$(DOC)" DVIPSOPTS="$(DVIPSOPTS)" PICS="$(PICS)" M4LOCLIBS=ics.m4 $(DOC).ps: $(PICS) $(DOC).dvi make $(MARGS) -f ../Makefile $(DOC).ps $(DOC).dvi: $(PICS) $(DOC).tex make $(MARGS) -f ../Makefile $(DOC).dvi $(PICS): cct.m4 make $(MARGS) -f ../Makefile $(PICS) clobber: clean clean: rm -f eps *.eps *.ps make $(MARGS) -f ../Makefile clean # Make an encapsulated Postscript file (requires pstricks) eps: eps.tex rm -f $(PICS) m4 $(LIBS) ics.m4 cct.m4 | $(DPIC) > cct.tex -for diag in $(PICS) ; do \ nm=`basename $$diag .tex` ; \ echo "====== $$nm" ; \ cp eps.tex F$$nm.tex ; \ echo "\input $$nm" >> F$$nm.tex ; \ echo '\end{TeXtoEPS}\end{document}' >> F$$nm.tex ; \ latex F$$nm ; \ dvips -E F$$nm -o $$nm.eps ; \ done touch eps