From 6fa7bf03070ed62d555dd6e8139e6778ba30ee52 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Fri, 14 Nov 2003 18:37:23 +0000 Subject: [PATCH] don't install html docs if they haven't been built Original commit message from CVS: don't install html docs if they haven't been built --- docs/gst/Makefile.am | 8 ++++++-- docs/libs/Makefile.am | 4 ++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/docs/gst/Makefile.am b/docs/gst/Makefile.am index 45add71cdd..34353efd3c 100644 --- a/docs/gst/Makefile.am +++ b/docs/gst/Makefile.am @@ -196,8 +196,9 @@ distclean-local: clean rm -f *.stamp || true # thomas: make docs parallel installable; devhelp requires majorminor too +if DOC_HTML install-data-local: - $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR) + $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR) (installfiles=`echo $(srcdir)/html/*.html $(srcdir)/html/*.png`; \ if test "$$installfiles" = '$(srcdir)/html/*.html'; \ then echo '-- Nothing to install' ; \ @@ -211,7 +212,10 @@ install-data-local: $(DESTDIR)$(TARGET_DIR)/$(DOC_MODULE)-@GST_MAJORMINOR@.devhelp; \ echo '-- Installing $(srcdir)/html/index.sgml' ; \ $(INSTALL_DATA) $(srcdir)/html/index.sgml $(DESTDIR)$(TARGET_DIR); \ - fi) + fi) +else +install-data-local: +endif # # Require gtk-doc when making dist diff --git a/docs/libs/Makefile.am b/docs/libs/Makefile.am index c5836b6ca2..211b95fbfb 100644 --- a/docs/libs/Makefile.am +++ b/docs/libs/Makefile.am @@ -193,6 +193,7 @@ distclean-local: clean rm -f $(DOC_MODULE).hierarchy rm -f *.stamp || true +if DOC_HTML install-data-local: $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR) (installfiles=`echo $(srcdir)/html/*.html $(srcdir)/html/*.png`; \ @@ -209,6 +210,9 @@ install-data-local: echo '-- Installing $(srcdir)/html/index.sgml' ; \ $(INSTALL_DATA) $(srcdir)/html/index.sgml $(DESTDIR)$(TARGET_DIR); \ fi) +else +install-data-local: +endif # # Require gtk-doc when making dist