Browse Source

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.
tags/v0.4.0-rc1
Zachary T Welch 14 years ago
parent
commit
5507b5f430
1 changed files with 8 additions and 3 deletions
  1. +8
    -3
      Makefile.am

+ 8
- 3
Makefile.am View File

@@ -35,9 +35,14 @@ THE_MANUAL = doxygen/latex/refman.pdf
doxygen:: doxygen::
$(MAKE) Doxyfile $(MAKE) Doxyfile
doxygen Doxyfile 2>&1 | perl $(srcdir)/tools/logger.pl > doxygen.log 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 $*)
-cd $$(dirname $*) && pdflatex $$(basename $*) -cd $$(dirname $*) && pdflatex $$(basename $*)




Loading…
Cancel
Save