From: Zachary T Welch Date: Tue, 24 Nov 2009 16:59:45 +0000 (-0800) Subject: fix doxygen build X-Git-Tag: v0.4.0-rc1~420 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5507b5f430e3d6bef00a7ffcd51df29c13d7477e;p=openocd fix doxygen build Update build rules to skip the PDF unless the TeX has been created. Also, fixes a warning regarding pattern rules being a GNU make trick. --- diff --git a/Makefile.am b/Makefile.am index c0677120..fab47046 100644 --- a/Makefile.am +++ b/Makefile.am @@ -35,9 +35,14 @@ THE_MANUAL = doxygen/latex/refman.pdf doxygen:: $(MAKE) Doxyfile doxygen Doxyfile 2>&1 | perl $(srcdir)/tools/logger.pl > doxygen.log - $(MAKE) $(THE_MANUAL) - -%.pdf: %.tex + @if [ -f doxygen/latex/refman.tex ]; then \ + echo "Creating $(THE_MANUAL)..."; \ + $(MAKE) $(THE_MANUAL); \ + else \ + echo "Skipping Doxygen PDF..."; \ + fi + +$(THE_MANUAL): %.pdf: %.tex -cd $$(dirname $*) && pdflatex $$(basename $*) -cd $$(dirname $*) && pdflatex $$(basename $*)