[PATCH] Makefile quorks :( Yes we want a 'doc' target for itself...

Cristian Ionescu-Idbohrn cristian.ionescu-idbohrn at axis.com
Tue Feb 19 13:46:49 PST 2013


...to avoid generating the HTMLDOC target even if it needs not to.

Signed-off-by: Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn at axis.com>
---
 Documentation/Makefile |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Documentation/Makefile b/Documentation/Makefile
index 2fb157d..ac43521 100644
--- a/Documentation/Makefile
+++ b/Documentation/Makefile
@@ -7,13 +7,15 @@ BROWSER = firefox
 
 all: doc $(addprefix $(DOCNAME).,pdf text)
 
+doc: $(HTMLDOC)
+
 $(DOCNAME).text: $(DOCSOURCE)
 	$(A2X) -f text $<
 
 $(DOCNAME).pdf: $(DOCSOURCE)
 	$(A2X) -f pdf $<
 
-doc $(HTMLDOC): $(DOCSOURCE)
+$(HTMLDOC): $(DOCSOURCE)
 	$(ASCIIDOC) $<
 
 # Alternatively::
-- 
1.7.10.4



More information about the subsurface mailing list