Commit 24963a68 authored by Stefan Kost's avatar Stefan Kost

gtk-doc/: Simplily uninstall rule. Its closer to upstream and fixes #150331.

Original commit message from CVS:
* gtk-doc-plugins.mak:
* gtk-doc.mak:
Simplily uninstall rule. Its closer to upstream and fixes #150331.
parent 5596f3e9
2008-12-01 Stefan Kost <ensonic@users.sf.net>
* gtk-doc-plugins.mak:
* gtk-doc.mak:
Simplily uninstall rule. Its closer to upstream and fixes #150331.
2008-11-29 Sebastian Dröge <sebastian.droege@collabora.co.uk> 2008-11-29 Sebastian Dröge <sebastian.droege@collabora.co.uk>
* m4/glib-gettext.m4: * m4/glib-gettext.m4:
......
...@@ -302,36 +302,12 @@ install-data-local: ...@@ -302,36 +302,12 @@ install-data-local:
gtkdoc-rebase --relative --dest-dir=$(DESTDIR) --html-dir=$(DESTDIR)$(TARGET_DIR)) || true ; \ gtkdoc-rebase --relative --dest-dir=$(DESTDIR) --html-dir=$(DESTDIR)$(TARGET_DIR)) || true ; \
fi) fi)
uninstall-local: uninstall-local:
(installfiles=`echo ./html/*.html`; \ if test -d $(DESTDIR)$(TARGET_DIR); then \
if test "$$installfiles" = './html/*.html'; \ rm -rf $(DESTDIR)$(TARGET_DIR)/*; \
then echo '-- Nothing to uninstall' ; \ rmdir -p $(DESTDIR)$(TARGET_DIR) 2>/dev/null || true; \
else \ else \
for i in $$installfiles; do \ echo '-- Nothing to uninstall' ; \
rmfile=`basename $$i` ; \ fi;
echo '-- Uninstalling $(DESTDIR)$(TARGET_DIR)/'$$rmfile ; \
rm -f $(DESTDIR)$(TARGET_DIR)/$$rmfile; \
done; \
pngfiles=`echo ./html/*.png`; \
if test "$$pngfiles" != './html/*.png'; then \
for i in $$pngfiles; do \
rmfile=`basename $$i` ; \
echo '-- Uninstalling $(DESTDIR)$(TARGET_DIR)/'$$rmfile ; \
rm -f $(DESTDIR)$(TARGET_DIR)/$$rmfile; \
done; \
fi; \
echo '-- Uninstalling $(DESTDIR)$(TARGET_DIR)/$(DOC_MODULE).devhelp' ; \
rm -f $(DESTDIR)$(TARGET_DIR)/$(DOC_MODULE)-@GST_MAJORMINOR@.devhelp; \
if test -e $(DESTDIR)$(TARGET_DIR)/$(DOC_MODULE)-@GST_MAJORMINOR@.devhelp2; then \
rm -f $(DESTDIR)$(TARGET_DIR)/$(DOC_MODULE)-@GST_MAJORMINOR@.devhelp2; \
fi; \
echo '-- Uninstalling $(DESTDIR)$(TARGET_DIR)/index.sgml' ; \
rm -f $(DESTDIR)$(TARGET_DIR)/index.sgml; \
if test -e $(DESTDIR)$(TARGET_DIR)/style.css; then \
echo '-- Uninstalling $(DESTDIR)$(TARGET_DIR)/style.css' ; \
rm -f $(DESTDIR)$(TARGET_DIR)/style.css; \
fi; \
fi)
if test -d $(DESTDIR)$(TARGET_DIR); then rmdir -p --ignore-fail-on-non-empty $(DESTDIR)$(TARGET_DIR) 2>/dev/null; fi; true
# #
# Checks # Checks
......
...@@ -206,36 +206,13 @@ install-data-local: ...@@ -206,36 +206,13 @@ install-data-local:
gtkdoc-rebase --relative --dest-dir=$(DESTDIR) --html-dir=$(DESTDIR)$(TARGET_DIR)) || true ; \ gtkdoc-rebase --relative --dest-dir=$(DESTDIR) --html-dir=$(DESTDIR)$(TARGET_DIR)) || true ; \
fi) fi)
uninstall-local: uninstall-local:
(installfiles=`echo ./html/*.html`; \ if test -d $(DESTDIR)$(TARGET_DIR); then \
if test "$$installfiles" = './html/*.html'; \ rm -rf $(DESTDIR)$(TARGET_DIR)/*; \
then echo '-- Nothing to uninstall' ; \ rmdir -p $(DESTDIR)$(TARGET_DIR) 2>/dev/null || true; \
else \ else \
for i in $$installfiles; do \ echo '-- Nothing to uninstall' ; \
rmfile=`basename $$i` ; \ fi;
echo '-- Uninstalling $(DESTDIR)$(TARGET_DIR)/'$$rmfile ; \
rm -f $(DESTDIR)$(TARGET_DIR)/$$rmfile; \
done; \
pngfiles=`echo ./html/*.png`; \
if test "$$pngfiles" != './html/*.png'; then \
for i in $$pngfiles; do \
rmfile=`basename $$i` ; \
echo '-- Uninstalling $(DESTDIR)$(TARGET_DIR)/'$$rmfile ; \
rm -f $(DESTDIR)$(TARGET_DIR)/$$rmfile; \
done; \
fi; \
echo '-- Uninstalling $(DESTDIR)$(TARGET_DIR)/$(DOC_MODULE).devhelp' ; \
rm -f $(DESTDIR)$(TARGET_DIR)/$(DOC_MODULE)-@GST_MAJORMINOR@.devhelp; \
if test -e $(DESTDIR)$(TARGET_DIR)/$(DOC_MODULE)-@GST_MAJORMINOR@.devhelp2; then \
rm -f $(DESTDIR)$(TARGET_DIR)/$(DOC_MODULE)-@GST_MAJORMINOR@.devhelp2; \
fi; \
echo '-- Uninstalling $(DESTDIR)$(TARGET_DIR)/index.sgml' ; \
rm -f $(DESTDIR)$(TARGET_DIR)/index.sgml; \
if test -e $(DESTDIR)$(TARGET_DIR)/style.css; then \
echo '-- Uninstalling $(DESTDIR)$(TARGET_DIR)/style.css' ; \
rm -f $(DESTDIR)$(TARGET_DIR)/style.css; \
fi; \
fi)
if test -d $(DESTDIR)$(TARGET_DIR); then rmdir -p --ignore-fail-on-non-empty $(DESTDIR)$(TARGET_DIR) 2>/dev/null; fi; true
# #
# Require gtk-doc when making dist # Require gtk-doc when making dist
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment