From f6970851de06cffd11ffc6cd42a75a82b9677168 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sun, 23 Nov 2003 04:40:22 +0000 Subject: [PATCH] get make distcheck working by adding uninstall support to gtk-doc stuff and changing a clean to a clean-local Original commit message from CVS: get make distcheck working by adding uninstall support to gtk-doc stuff and changing a clean to a clean-local --- docs/gst/Makefile.am | 17 +++++++++++++++++ docs/libs/Makefile.am | 17 +++++++++++++++++ docs/manuals.mak | 2 +- 3 files changed, 35 insertions(+), 1 deletion(-) diff --git a/docs/gst/Makefile.am b/docs/gst/Makefile.am index 22e9941102..c9e3424320 100644 --- a/docs/gst/Makefile.am +++ b/docs/gst/Makefile.am @@ -228,8 +228,25 @@ install-data-local: echo '-- Installing $(srcdir)/html/index.sgml' ; \ $(INSTALL_DATA) $(srcdir)/html/index.sgml $(DESTDIR)$(TARGET_DIR); \ fi) +uninstall-local: + (installfiles=`echo $(srcdir)/html/*.html $(srcdir)/html/*.png`; \ + if test "$$installfiles" = '$(srcdir)/html/*.html'; \ + then echo '-- Nothing to uninstall' ; \ + else \ + for i in $$installfiles; do \ + rmfile=`basename $$i` ; \ + echo '-- Uninstalling $(DESTDIR)$(TARGET_DIR)/'$$rmfile ; \ + rm -f $(DESTDIR)$(TARGET_DIR)/$$rmfile; \ + done; \ + echo '-- Uninstalling $(DESTDIR)$(TARGET_DIR)/$(DOC_MODULE).devhelp' ; \ + rm -f $(DESTDIR)$(TARGET_DIR)/$(DOC_MODULE)-@GST_MAJORMINOR@.devhelp; \ + echo '-- Uninstalling $(DESTDIR)$(TARGET_DIR)/index.sgml' ; \ + rm -f $(DESTDIR)$(TARGET_DIR)/index.sgml; \ + fi) + rmdir -p --ignore-fail-on-non-empty $(DESTDIR)$(TARGET_DIR) else install-data-local: +uninstall-local: endif # diff --git a/docs/libs/Makefile.am b/docs/libs/Makefile.am index d412d80a22..7d636e73c4 100644 --- a/docs/libs/Makefile.am +++ b/docs/libs/Makefile.am @@ -227,8 +227,25 @@ install-data-local: echo '-- Installing $(srcdir)/html/index.sgml' ; \ $(INSTALL_DATA) $(srcdir)/html/index.sgml $(DESTDIR)$(TARGET_DIR); \ fi) +uninstall-local: + (installfiles=`echo $(srcdir)/html/*.html $(srcdir)/html/*.png`; \ + if test "$$installfiles" = '$(srcdir)/html/*.html'; \ + then echo '-- Nothing to uninstall' ; \ + else \ + for i in $$installfiles; do \ + rmfile=`basename $$i` ; \ + echo '-- Uninstalling $(DESTDIR)$(TARGET_DIR)/'$$rmfile ; \ + rm -f $(DESTDIR)$(TARGET_DIR)/$$rmfile; \ + done; \ + echo '-- Uninstalling $(DESTDIR)$(TARGET_DIR)/$(DOC_MODULE).devhelp' ; \ + rm -f $(DESTDIR)$(TARGET_DIR)/$(DOC_MODULE)-@GST_MAJORMINOR@.devhelp; \ + echo '-- Uninstalling $(DESTDIR)$(TARGET_DIR)/index.sgml' ; \ + rm -f $(DESTDIR)$(TARGET_DIR)/index.sgml; \ + fi) + rmdir -p --ignore-fail-on-non-empty $(DESTDIR)$(TARGET_DIR) else install-data-local: +uninstall-local: endif # diff --git a/docs/manuals.mak b/docs/manuals.mak index 49afddb75a..7c12eb622c 100644 --- a/docs/manuals.mak +++ b/docs/manuals.mak @@ -119,7 +119,7 @@ $(DOC).pdf: $(DOC).ps # @export LC_PAPER=$(PAPER_LOCALE) && xmlto pdf $(MAIN) # @rm image.entities -clean: +clean-local: -$(RM) -r $(BUILDDIR) -$(RM) -r html -$(RM) $(DOC).ps