2005-10-23 Jim Evins <evins@snaught.com>
- reviewed by: <delete if not using a buddy>
+ * configure.in:
+ * data/mime/Makefile.am:
+ Added configure options to disable update-mime-database and
+ update-desktop-database as part of the install. Patch
+ provided by Leonardo Boshell (qhoracio@sourceforge.net).
+
+2005-10-23 Jim Evins <evins@snaught.com>
* libglabels/xml.h:
* libglabels/xml.c: (gl_xml_get_prop_string),
AC_SUBST(LIBGNOMEPRINTUI_REQUIRED)
AC_SUBST(LIBGNOMECANVAS_REQUIRED)
AC_SUBST(LIBGLADE_REQUIRED)
-
+
dnl ---------------------------------------------------------------------------
dnl - GLABELS prerequisites
AC_PATH_PROG(UPDATE_DESKTOP_DATABASE, update-desktop-database, no)
AM_CONDITIONAL(HAVE_NEWER_MIME, test x$UPDATE_DESKTOP_DATABASE != xno)
+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_ARG_ENABLE(update-desktopdb, AC_HELP_STRING([--disable-update-desktopdb],
+ [disable the update-desktop-database after install [default=no]]),,
+ enable_update_desktopdb=yes)
+AM_CONDITIONAL(ENABLE_UPDATE_DESKTOPDB, test x$enable_update_desktopdb = xyes)
+
dnl ---------------------------------------------------------------------------
dnl - Supported languages
install-data-hook:
+if ENABLE_UPDATE_MIMEDB
if HAVE_NEW_MIME
$(UPDATE_MIME_DATABASE) "$(DESTDIR)$(datadir)/mime"
endif
+endif
+if ENABLE_UPDATE_DESKTOPDB
if HAVE_NEWER_MIME
$(UPDATE_DESKTOP_DATABASE)
endif
+endif
uninstall-hook:
+if ENABLE_UPDATE_MIMEDB
if HAVE_NEW_MIME
$(UPDATE_MIME_DATABASE) "$(DESTDIR)$(datadir)/mime"
endif
+endif
+if ENABLE_UPDATE_DESKTOPDB
if HAVE_NEWER_MIME
$(UPDATE_DESKTOP_DATABASE)
endif
+endif
$(content_files) \
$(HTML_IMAGES) \
$(DOC_MAIN_SGML_FILE) \
+ $(DOC_MODULE).types \
$(DOC_MODULE)-sections.txt \
$(DOC_MODULE)-overrides.txt
scan-build.stamp: $(HFILE_GLOB) $(CFILE_GLOB)
@echo '*** Scanning header files ***'
@-chmod -R u+w $(srcdir)
- if grep -l '^..*$$' $(srcdir)/$(DOC_MODULE).types > /dev/null 2>&1 ; then \
+ if grep -l '^..*$$' $(srcdir)/$(DOC_MODULE).types > /dev/null ; then \
CC="$(GTKDOC_CC)" LD="$(GTKDOC_LD)" CFLAGS="$(GTKDOC_CFLAGS)" LDFLAGS="$(GTKDOC_LIBS)" gtkdoc-scangobj $(SCANGOBJ_OPTIONS) --module=$(DOC_MODULE) --output-dir=$(srcdir) ; \
else \
cd $(srcdir) ; \
tmpl-build.stamp: $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt
@echo '*** Rebuilding template files ***'
@-chmod -R u+w $(srcdir)
- cd $(srcdir) && gtkdoc-mktmpl --module=$(DOC_MODULE) $(MKTMPL_OPTIONS)
+ cd $(srcdir) && gtkdoc-mktmpl --module=$(DOC_MODULE)
touch tmpl-build.stamp
tmpl.stamp: tmpl-build.stamp
#### xml ####
-sgml-build.stamp: tmpl.stamp $(CFILE_GLOB) $(srcdir)/tmpl/*.sgml $(expand_content_files)
+sgml-build.stamp: tmpl.stamp $(CFILE_GLOB) $(srcdir)/tmpl/*.sgml
@echo '*** Building XML ***'
@-chmod -R u+w $(srcdir)
cd $(srcdir) && \
- gtkdoc-mkdb --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR) --output-format=xml --expand-content-files="$(expand_content_files)" $(MKDB_OPTIONS)
+ gtkdoc-mkdb --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR) --output-format=xml $(MKDB_OPTIONS)
touch sgml-build.stamp
sgml.stamp: sgml-build.stamp
-cp $(srcdir)/tmpl/*.sgml $(distdir)/tmpl
-cp $(srcdir)/xml/*.xml $(distdir)/xml
-cp $(srcdir)/html/* $(distdir)/html
- if test -f $(srcdir)/$(DOC_MODULE).types; then \
- cp $(srcdir)/$(DOC_MODULE).types $(distdir)/$(DOC_MODULE).types; \
- fi
.PHONY : dist-hook-local