diff options
-rw-r--r-- | Makefile.am | 6 | ||||
-rw-r--r-- | doc/Makefile.am | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am index f149bfe..8362566 100644 --- a/Makefile.am +++ b/Makefile.am @@ -24,7 +24,11 @@ ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} AUTOMAKE_OPTIONS = foreign -SUBDIRS = va pkgconfig doc +SUBDIRS = va pkgconfig + +if ENABLE_DOCS +SUBDIRS += doc +endif # Extra clean files so that maintainer-clean removes *everything* MAINTAINERCLEANFILES = \ diff --git a/doc/Makefile.am b/doc/Makefile.am index c9b5343..b96acc1 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -60,8 +60,8 @@ Doxyfile: Doxyfile.in $(VA_HEADER_FILES) $(VA_HTML_FOOTER) html-out/index.html: Doxyfile $(AM_V_GEN) $(DOXYGEN) -if ENABLE_DOCS html: html-out/index.html + install-html-local: install -d $(DESTDIR)$(docdir)/html for file in `ls html-out/` ; do \ @@ -72,9 +72,9 @@ install-html-local: install -m 0644 html-out/$$file/* $(DESTDIR)$(docdir)/html/$$file; \ fi ; \ done + uninstall-local: rm -rf $(DESTDIR)$(docdir)/html -endif # Extra clean files so that maintainer-clean removes *everything* MAINTAINERCLEANFILES = Makefile.in Doxyfile |