Implement execution mode property
[nautilus-actions.git] / data / gconf-schemas / Makefile.am
blobbb74698c4a27af16fe10b1f3889820d54cf33571
1 # Nautilus-Actions
2 # A Nautilus extension which offers configurable context menu actions.
4 # Copyright (C) 2005 The GNOME Foundation
5 # Copyright (C) 2006, 2007, 2008 Frederic Ruaudel and others (see AUTHORS)
6 # Copyright (C) 2009, 2010, 2011 Pierre Wieser and others (see AUTHORS)
8 # This Program is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU General Public License as
10 # published by the Free Software Foundation; either version 2 of
11 # the License, or (at your option) any later version.
13 # This Program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public
19 # License along with this Library; see the file COPYING.  If not,
20 # write to the Free Software Foundation, Inc., 59 Temple Place,
21 # Suite 330, Boston, MA 02111-1307, USA.
23 # Authors:
24 #   Frederic Ruaudel <grumz@grumz.net>
25 #   Rodrigo Moya <rodrigo@gnome-db.org>
26 #   Pierre Wieser <pwieser@trychlos.org>
27 #   ... and many others (see AUTHORS)
29 if HAVE_GCONF
31 schemas_in_files = \
32         nautilus-actions-prefs.schemas.in                                       \
33         nautilus-actions-confs.schemas.in                                       \
34         $(NULL)
36 schemas_files = $(schemas_in_files:.schemas.in=.schemas)
38 nautilus-actions-confs.schemas.in:
39         $(top_srcdir)/src/utils/na-print-schemas -s > $@
41 schemasdir = $(pkgdatadir)/gconf-schemas
43 schemas_DATA = $(schemas_files)
45 @INTLTOOL_SCHEMAS_RULE@
47 if GCONF_SCHEMAS_INSTALL
48 NA_INSTALL_SCHEMAS  = yes
49 else
50 NA_INSTALL_SCHEMAS = no
51 endif
53 EXTRA_DIST = \
54         $(schemas_in_files)                                                                     \
55         $(NULL)
57 install-data-hook:
58         @if test "$(NA_INSTALL_SCHEMAS)" = "yes"; then \
59                 if test `id -u` != 0; then \
60                         echo "***"; \
61                         echo "*** You need to be root to install GConf schemas"; \
62                         echo "***"; \
63                         exit 1; \
64                 fi; \
65                 for p in $(schemas_DATA); do \
66                         GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $$p; \
67                 done \
68         fi
70 CLEANFILES = $(schemas_files)
72 uninstall-hook:
73         @if test "$(NA_INSTALL_SCHEMAS)" = "yes"; then \
74                 for p in $(schemas_DATA); do \
75                         GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-uninstall-rule $$p; \
76                 done \
77         fi
79 endif