Borrow some autofoo goo from nautilus to make the mimedb stuff distcheck

This commit is contained in:
Dan Winship
2007-08-13 17:57:05 -04:00
parent 6debe0c34d
commit 56eb7c2dc3
3 changed files with 13 additions and 1 deletions
+5 -1
View File
@@ -23,14 +23,18 @@ mimedir = $(datadir)/mime/packages
mime_DATA = $(mime_xml_files)
install-data-hook:
if ENABLE_UPDATE_MIMEDB
if [ -z "$$DESTDIR" ]; then \
update-mime-database "$(datadir)/mime"; \
fi
endif
uninstall-hook:
if ENABLE_UPDATE_MIMEDB
if [ -z "$$DESTDIR" ]; then \
update-mime-database "$(datadir)/mime"; \
fi
endif
EXTRA_DIST = $(sugar_DATA) $(mime_xml_in_files) em.py gtkrc.em
CLEANFILES = $(GTKRC_FILES)
CLEANFILES = $(GTKRC_FILES) $(mime_xml_files)