X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=doc%2FMakefile.am;h=6ad6aabf63d5a732482a9f9a33ab960c2748b803;hb=b117f84afe3c3946c6dffbd21e20efb7e0d3c771;hp=bf3adbf08312bd73cd774ac3253e22f5a129717d;hpb=49aa0cbbcd139f49edf76180f1a46626bd70f043;p=platform%2Fupstream%2Flibvorbis.git diff --git a/doc/Makefile.am b/doc/Makefile.am index bf3adbf..6ad6aab 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -105,6 +105,7 @@ $(BUILDDIR)/draft-rtp.xml: draft-kerr-avt-vorbis-rtp-03.txt # cat $< | sed 's/ //g' | sed 's//\>/g' > $@ # explicit rules for generating docs +if BUILD_DOCS Vorbis_I_spec.html: $(SPEC_PNG_BUILD) $(BUILDDIR)/Vorbis_I_spec.xml cd build; xsltproc --xinclude --output Vorbis_I_spec.html spec-html.xsl Vorbis_I_spec.xml && mv $@ .. @@ -117,6 +118,15 @@ Vorbis_I_spec.pdf: Vorbis_I_spec.fo $(SPEC_PNG_BUILD) $(SPEC_PDF_BUILD) cd build; pdfxmltex --interaction nonstopmode spec.fo rm build/spec.fo mv build/spec.pdf $@ +else +Vorbis_I_spec.html: NO_DOCS_ERROR +Vorbis_I_spec.pdf: NO_DOCS_ERROR +NO_DOCS_ERROR: + @echo + @echo "*** Documentation has not been built! ***" + @echo "Try re-running after passing --enable-docs to configure." + @echo +endif # clean up build dir clean-local: