summaryrefslogtreecommitdiff
path: root/editor/Makefile.am
blob: 52fd81aeb9c4f98d2de0d046c216a08503019841 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
bin_PROGRAMS = dconf-editor

AM_CFLAGS = $(gtk_CFLAGS) $(gmodule_CFLAGS) $(libxml_CFLAGS) -I$(top_srcdir)/common -I$(top_srcdir)/client -DPKGDATADIR=\"@datadir@/dconf-editor\"
AM_VALAFLAGS = --vapidir ../client --pkg gtk+-3.0 --pkg gmodule-2.0 --pkg libxml-2.0 --pkg dconf
CFLAGS += -Wno-error -Wno-unused-but-set-variable -Wno-unused-variable
dconf_editor_LDADD = ../client/libdconf.so.0 $(gtk_LIBS) $(gmodule_LIBS) $(gee_LIBS) $(libxml_LIBS)
dconf_editor_SOURCES = config.vapi dconf-editor.vala dconf-model.vala dconf-schema.vala dconf-view.vala

desktopdir = $(datadir)/applications
desktop_in_files = dconf-editor.desktop.in.in
desktop_DATA = $(desktop_in_files:.desktop.in.in=.desktop)

gsettings_SCHEMAS = ca.desrt.dconf-editor.gschema.xml
@GSETTINGS_RULES@

nobase_data_DATA = \
	icons/hicolor/14x14/apps/dconf-editor.png	\
	icons/hicolor/32x32/apps/dconf-editor.png	\
	icons/hicolor/48x48/apps/dconf-editor.png	\
	icons/hicolor/64x64/apps/dconf-editor.png	\
	icons/hicolor/92x92/apps/dconf-editor.png	\
	icons/hicolor/128x128/apps/dconf-editor.png

install-data-hook: update-icon-cache
uninstall-hook: update-icon-cache
update-icon-cache:
	if test -z "$(DESTDIR)"; then \
		gtk-update-icon-cache -f -t $(datadir)/icons/hicolor; \
	fi

uidir = $(datadir)/dconf-editor
dist_ui_DATA = dconf-editor.ui

EXTRA_DIST = $(gsettings_SCHEMAS)