]> git.sur5r.net Git - glabels/commitdiff
2005-10-23 Jim Evins <evins@snaught.com>
authorJim Evins <evins@snaught.com>
Mon, 24 Oct 2005 01:24:50 +0000 (01:24 +0000)
committerJim Evins <evins@snaught.com>
Mon, 24 Oct 2005 01:24:50 +0000 (01:24 +0000)
* 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).

git-svn-id: https://glabels.svn.sourceforge.net/svnroot/glabels/trunk@555 f5e0f49d-192f-0410-a22d-a8d8700d0965

glabels2/ChangeLog
glabels2/configure.in
glabels2/data/mime/Makefile.am
glabels2/gtk-doc.make

index a03b3a64beabc4a8c1f5716eb04d8f5089409e10..7a71a796280e8bac46b84c99fd20766f39c773bd 100644 (file)
@@ -1,6 +1,12 @@
 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),
index 7bde960dc1105522d11fd16d9698036da4c3d1da..fa0542e1028e21cbe4e4e857c26732522d59463b 100644 (file)
@@ -70,7 +70,7 @@ AC_SUBST(LIBGNOMEPRINT_REQUIRED)
 AC_SUBST(LIBGNOMEPRINTUI_REQUIRED)
 AC_SUBST(LIBGNOMECANVAS_REQUIRED)
 AC_SUBST(LIBGLADE_REQUIRED)
-               
+
 
 dnl ---------------------------------------------------------------------------
 dnl - GLABELS prerequisites
@@ -131,6 +131,16 @@ AM_CONDITIONAL(HAVE_NEW_MIME, test x$UPDATE_MIME_DATABASE != xno)
 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
index bf943c7cd831acbfb1549f9460a54935a5cc9083..027c10225b4ca320993072f30346a2210be52c64 100644 (file)
@@ -28,18 +28,26 @@ CLEANFILES = $(keys_files) $(xml_files)
 
 
 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
 
index 91cdd34d2ff92069ab1f0f2272a6e04848acb346..445c6e85ccc680f31933f98fe8413e8a764d39d4 100644 (file)
@@ -25,6 +25,7 @@ EXTRA_DIST =                          \
        $(content_files)                \
        $(HTML_IMAGES)                  \
        $(DOC_MAIN_SGML_FILE)           \
+       $(DOC_MODULE).types             \
        $(DOC_MODULE)-sections.txt      \
        $(DOC_MODULE)-overrides.txt
 
@@ -48,7 +49,7 @@ all-local: html-build.stamp
 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) ; \
@@ -68,7 +69,7 @@ $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES): scan-build.stamp
 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
@@ -76,11 +77,11 @@ 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
@@ -146,8 +147,5 @@ dist-hook: dist-check-gtkdoc dist-hook-local
        -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