# Makefile for the mpost subdirectory
# To test a new file, copy it into test.m4 and type "make tst" or "make tst1"
M4 = m4 mpost.m4
# If the M4PATH environment variable has not been set to include the
# installation directory then change $$HOME/lib to point to the directory,
# and uncomment the following:
# M4 = m4 -I $$HOME/lib mpost.m4
#---------------------------------------------
MKDIM=pwd | sed -e 's%^%=boxdimfile{%' -e 's%/cygdrive/\(.\)/%\1:/%' \
-e 's%$$%/$(DIMFILE)}%'
# Comment out the following line to produce absolute addresses for .dim files.
MKDIM=printf '=boxdimfile{$(DIMFILE)}\n'
EXL = exlinks
$(DOC).dvi: $(DOC).tex
-if test "$(DOC)" = "examplesmpost" ; then \
make exlinks dims; rose.pdf; fi
make $(FIGS)
$(LATEX) $(DOC)
-if test -n "$(BOXDIMS)" ; then rm -f dims; \
for box in $(BOXDIMS) ; do rm -f $$box.1; done; \
make BOXDIMS="$(BOXDIMS)" dims; $(LATEX) $(DOC); fi
dims:
-if test -n "$(BOXDIMS)" ; then for box in $(BOXDIMS) ; do \
make $$box.1; rm -f $$box.1; make $$box.1; done; fi
touch dims
ignore:
@echo ""
@echo ""
@echo 'Ignore "cannot create ... exists and file.1 not found" warnings.'
@echo ""
@echo ""
exlinks: ignore
-@if test ! -f ex11.m4 ; then \
ls ../*.m4 | sed -e 's/^/ln -s /' -e '/test.m4/d' | sh;\
fi
-@if test ! -f AmpTable.m4 ; then \
ls ../../doc/*.m4 ../*.bb ../*.gz | sed -e 's/^/ln -s /' | sh;\
fi
-if test -n "$(EXL)" ; then touch $(EXL) ; fi