Re: [Openocd-development] Document build broken when src != build

2009-11-24 Thread Zach Welch
On Sun, 2009-11-22 at 10:17 +0100, Øyvind Harboe wrote:
 I can no longer build docs when src != build. I believe this is trivially
 reproducible and that the breakage is relatively recent(a month
 or so).
 
 Or... perhaps I'm missing some tool on my laptop?
 
 make docs
 make doxygen
 
 = both fail
 
 make doxygen/latex/refman.pdf
 make[1]: Entering directory `/home/oyvind/workspace/build'
 make[1]: *** No rule to make target `doxygen/latex/refman.pdf'.  Stop.

Try the attached patch.  If this fixes it, I'll push it along.

--Z
From 9a004d41b0d491d1f9ce6aac2d677c0a595f5df9 Mon Sep 17 00:00:00 2001
From: Zachary T Welch z...@superlucidity.net
Date: Tue, 24 Nov 2009 08:59:45 -0800
Subject: [PATCH] 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.

Signed-off-by: Zachary T Welch z...@superlucidity.net
---
 Makefile.am |   11 ---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index c067712..fab4704 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -35,9 +35,14 @@ THE_MANUAL = doxygen/latex/refman.pdf
 doxygen::
 	$(MAKE) Doxyfile
 	doxygen Doxyfile 21 | 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 $*)
 
-- 
1.6.4.4

___
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development


Re: [Openocd-development] Document build broken when src != build

2009-11-22 Thread Andreas Fritiofson
On Sun, Nov 22, 2009 at 10:17 AM, Øyvind Harboe oyvind.har...@zylin.com wrote:
 I can no longer build docs when src != build. I believe this is trivially
 reproducible and that the breakage is relatively recent(a month
 or so).

 Or... perhaps I'm missing some tool on my laptop?

 make docs
 make doxygen

 = both fail

 make doxygen/latex/refman.pdf
 make[1]: Entering directory `/home/oyvind/workspace/build'
 make[1]: *** No rule to make target `doxygen/latex/refman.pdf'.  Stop.

 I saw this error warning fly by

 doxygen Doxyfile 21 | perl ../zy1000/openocd/tools/logger.pl  doxygen.log
 Warning: tag INPUT: input source `../zy1000/openocd/config.h' does not exist
 Warning: source ../zy1000/openocd/config.h is not a readable file or
 directory... skipping.
 


Same problem here, automatic git bisect revealed
0091e59d2a18c293fd952a9d707e609afdd6b17f to be the culprit.
The warning message is unrelated.

/Andreas
___
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development


Re: [Openocd-development] Document build broken when src != build

2009-11-22 Thread David Brownell
On Sunday 22 November 2009, Øyvind Harboe wrote:
 make[1]: *** No rule to make target `doxygen/latex/refman.pdf'.  Stop.

Similar happens with src == build...

___
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development