Skip to content

Commit

Permalink
avoid doc build failure if not building docs
Browse files Browse the repository at this point in the history
  • Loading branch information
valient committed Nov 23, 2009
1 parent f112cae commit 082ca85
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ docdir = $(datadir)/doc
pkgdocdir = $(docdir)/$(PACKAGE)
#pkghtmldir = $(pkgdocdir)/html


if BUILD_DOCS
# have both html and html/index.html to force build of index.html if necessary
EXTRA_DIST = latex/refman.pdf html html/index.html $(SOURCES)

Expand All @@ -15,7 +15,6 @@ pkgdoc_DATA = \
#pkghtml_DATA = \
# html/*

if BUILD_DOCS
latex/refman.pdf: html/index.html
-cd latex && make

Expand All @@ -26,7 +25,6 @@ html/index.html: ../Doxyfile $(SOURCES)
clean-local:
-rm -rf html
-rm -rf latex
endif

all-local: html/index.html

Expand All @@ -35,4 +33,5 @@ install-data-local: all-local
/bin/sh ../mkinstalldirs ${DESTDIR}${pkgdocdir}/html
install html/* ${DESTDIR}${pkgdocdir}/html

endif

0 comments on commit 082ca85

Please sign in to comment.