1 include $(top_srcdir)/Makefile.gtester
3 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/client
5 bin_PROGRAMS = dconf-editor
7 dconf_editor_VALAFLAGS = --vapidir ../client --pkg gtk+-3.0 --pkg gmodule-2.0 --pkg libxml-2.0 --pkg dconf
10 ../client/libdconf.so.1 \
16 dconf_editor_CFLAGS = \
20 -DPKGDATADIR=\"$(pkgdatadir)\" \
21 -DVERSION=\"$(VERSION)\" \
22 -DLOCALEDIR=\"$(localedir)\" \
23 -DGETTEXT_PACKAGE=\"$(GETTEXT_PACKAGE)\"\
27 dconf-editor.gresource.xml \
28 dconf-editor-menu.ui \
31 resources.c: $(resource_data)
32 $(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir) --target=$@ --generate-source $<
34 nodist_dconf_editor_SOURCES = resources.c
36 dconf_editor_SOURCES = \
43 desktopdir = $(datadir)/applications
44 desktop_in_files = dconf-editor.desktop.in.in
45 desktop_DATA = $(desktop_in_files:.desktop.in.in=.desktop)
46 CLEANFILES = $(desktop_DATA) resources.c
47 @INTLTOOL_DESKTOP_RULE@
49 gsettings_SCHEMAS = ca.desrt.dconf-editor.gschema.xml
52 nobase_data_DATA = $(icons)
55 icons/HighContrast/16x16/apps/dconf-editor.png \
56 icons/HighContrast/22x22/apps/dconf-editor.png \
57 icons/HighContrast/24x24/apps/dconf-editor.png \
58 icons/HighContrast/32x32/apps/dconf-editor.png \
59 icons/HighContrast/48x48/apps/dconf-editor.png \
60 icons/HighContrast/256x256/apps/dconf-editor.png \
61 icons/hicolor/16x16/apps/dconf-editor.png \
62 icons/hicolor/22x22/apps/dconf-editor.png \
63 icons/hicolor/24x24/apps/dconf-editor.png \
64 icons/hicolor/32x32/apps/dconf-editor.png \
65 icons/hicolor/48x48/apps/dconf-editor.png \
66 icons/hicolor/64x64/apps/dconf-editor.png \
67 icons/hicolor/256x256/apps/dconf-editor.png
69 install-data-hook: update-icon-cache
70 uninstall-hook: update-icon-cache
72 if test -z "$(DESTDIR)"; then \
73 gtk-update-icon-cache -f -t $(datadir)/icons/HighContrast; \
74 gtk-update-icon-cache -f -t $(datadir)/icons/hicolor; \
77 EXTRA_DIST = $(gsettings_SCHEMAS) $(icons) $(resource_data)