Borrow some autofoo goo from nautilus to make the mimedb stuff distcheck
This commit is contained in:
parent
6debe0c34d
commit
56eb7c2dc3
@ -14,3 +14,5 @@ EXTRA_DIST = \
|
||||
intltool-merge.in \
|
||||
intltool-update.in \
|
||||
intltool-extract.in
|
||||
|
||||
DISTCHECK_CONFIGURE_FLAGS = --disable-update-mimedb
|
||||
|
@ -38,6 +38,12 @@ AC_SUBST(GETTEXT_PACKAGE)
|
||||
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Gettext package])
|
||||
AM_GLIB_GNU_GETTEXT
|
||||
|
||||
AC_ARG_ENABLE(update-mimedb,
|
||||
AC_HELP_STRING([--disable-update-mimedb],
|
||||
[disable the update-mime-database after install [default=no]]),,
|
||||
enable_update_mimedb=yes)
|
||||
AM_CONDITIONAL(ENABLE_UPDATE_MIMEDB, test x$enable_update_mimedb = xyes)
|
||||
|
||||
AC_CONFIG_FILES([bin/sugar], [chmod +x sugar])
|
||||
|
||||
AC_OUTPUT([
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user