From 5cb061ebdf8cbc165747c60efcd763644d0c767e Mon Sep 17 00:00:00 2001
From: Serge Ziryukin <ftrvxmtrx@gmail.com>
Date: Sun, 25 Jul 2010 14:04:24 +0200
Subject: [PATCH] Makefile.am: simplify (de)installation of doxygen-generated
 documentation

This also fixes installation when no *.gif files found in 'doc/api/html' folder.
---
 Makefile.am | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index ec38cf4ea..01abe578f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1113,10 +1113,12 @@ clean-local:
 
 install-data-local: doc/api/html/index.html
 	$(mkinstalldirs) $(DESTDIR)$(docdir)/api/html
-	$(INSTALL_DATA) -c -m 644 doc/api/html/*.html doc/api/html/*.css \
-		doc/api/html/*.png doc/api/html/*.gif \
+	$(INSTALL_DATA) -c -m 644 doc/api/html/*.* \
 		$(DESTDIR)$(docdir)/api/html
 
+uninstall-local:
+	rm -f $(DESTDIR)$(docdir)/api/html/*.*
+
 upload: $(DOCBOOK_HTML) doc/api/html/index.html
 	rsync -vpruz --delete doc/ cirrus@www.musicpd.org:/var/www/musicpd.org/www/doc/ \
 		--chmod=Dug+rwx,Do+rx,Fug+rw,Fo+r \