1IMG_EPS = a.eps b.eps layout.eps yaws_head.eps 2IMG_PDF = $(IMG_EPS:.eps=.pdf) 3 4EXTRA_DIST = $(IMG_EPS) overview.edoc README.rss yaws.tex 5 6if CAN_BUILD_DOC 7 8doc: yaws.ps yaws.pdf 9 10install-data-local: doc 11 $(AM_V_at)$(INSTALL) -d $(DESTDIR)$(docdir) 12 $(AM_V_at)$(INSTALL) -m 644 yaws.pdf $(DESTDIR)$(docdir) 13 14 $(AM_V_at)$(INSTALL) -d $(DESTDIR)$(wwwdir) 15 $(AM_V_at)$(INSTALL) -m 644 yaws.ps $(DESTDIR)$(wwwdir) 16 $(AM_V_at)$(INSTALL) -m 644 yaws.pdf $(DESTDIR)$(wwwdir) 17 18uninstall-local: 19 $(AM_V_at)rm -f $(DESTDIR)$(docdir)/yaws.pdf 20 $(AM_V_at)rm -f $(DESTDIR)$(wwwdir)/yaws.ps 21 $(AM_V_at)rm -f $(DESTDIR)$(wwwdir)/yaws.pdf 22 23clean-local: 24 $(AM_V_at)rm -f *.ps *.dvi *.log *.aux *.pdf *.toc *.out 25 26else 27 28doc: 29 @echo "SKIPPED:" 30 @if [ -z "$(DVILATEX)" ]; then \ 31 echo " latex required to build documentation"; \ 32 fi 33 @if [ -z "$(DVIPS)" ]; then \ 34 echo " dvips required to build documentation"; \ 35 fi 36 @if [ -z "$(PDFLATEX)" ]; then \ 37 echo " pdflatex required to build documentation"; \ 38 fi 39 @if [ -z "$(EPSTOPDF)" ]; then \ 40 echo " epstopdf required to build documentation"; \ 41 fi 42 43install-data-local: doc 44 45endif 46 47yaws.ps: yaws.dvi 48 $(AM_V_GEN)TEXINPUTS="$${TEXTINPUTS}:@srcdir@" $(DVIPS) -q -o $@ $< 49 50yaws.pdf: yaws.tex $(IMG_PDF) 51 $(AM_V_GEN)TEXINPUTS="$${TEXTINPUTS}:@srcdir@" $(PDFLATEX) yaws.tex > /dev/null 52 $(AM_V_at)TEXINPUTS="$${TEXTINPUTS}:@srcdir@" $(PDFLATEX) yaws.tex > /dev/null 53 54yaws.dvi: yaws.tex $(IMG_EPS) 55 $(AM_V_GEN)TEXINPUTS="$${TEXTINPUTS}:@srcdir@" $(DVILATEX) yaws.tex > /dev/null 56 $(AM_V_at)TEXINPUTS="$${TEXTINPUTS}:@srcdir@" $(DVILATEX) yaws.tex > /dev/null 57 58.eps.pdf: 59 $(AM_V_GEN)$(EPSTOPDF) --outfile=$@ $< > /dev/null 60 61.NOTPARALLEL: 62# Local Variables: 63# tab-width: 8 64# End: 65