2
0
mirror of git://git.code.sf.net/p/openocd/code synced 2025-07-18 20:07:08 +10:00

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.
This commit is contained in:
Zachary T Welch 2009-11-24 08:59:45 -08:00
parent 96f0ab894a
commit 5507b5f430

View File

@ -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)
@if [ -f doxygen/latex/refman.tex ]; then \
echo "Creating $(THE_MANUAL)..."; \
$(MAKE) $(THE_MANUAL); \
else \
echo "Skipping Doxygen PDF..."; \
fi
%.pdf: %.tex
$(THE_MANUAL): %.pdf: %.tex
-cd $$(dirname $*) && pdflatex $$(basename $*)
-cd $$(dirname $*) && pdflatex $$(basename $*)