Browse Source

[3006] Generate dummy targets when tools are not available

Don't fail the build.
Mukund Sivaraman 12 years ago
parent
commit
7a55d6839c
1 changed files with 6 additions and 2 deletions
  1. 6 2
      doc/design/datasrc/Makefile.am

+ 6 - 2
doc/design/datasrc/Makefile.am

@@ -16,14 +16,18 @@ BUILT_SOURCES = \
 if HAVE_ASCIIDOC
 	$(AM_V_GEN) $(ASCIIDOC) -n $<
 else
-	@echo "*** asciidoc is required to regenerate $(@) ***"; exit 1;
+	@echo "*** asciidoc is required to regenerate $(@); creating dummy ***";
+	@echo "<html><body><p>" > $@
+	@echo "Dummy document. Install asciidoc to correctly generate this file." >> $@
+	@echo "</p></body></html>" >> $@
 endif
 
 .txt.png:
 if HAVE_PLANTUML
 	$(AM_V_GEN) $(PLANTUML) $<
 else
-	@echo "*** plantuml is required to regenerate $(@) ***"; exit 1;
+	@echo "*** plantuml is required to regenerate $(@); creating dummy ***";
+	@echo "Dummy image. Install plantuml to correctly generate this file." > $@
 endif
 
 CLEANFILES = \