summaryrefslogtreecommitdiff
path: root/shell/Makefile.am
blob: db58a1f4811b2fe38407be4c4b4749551de3f0b6 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
if HAVE_LIBSLAB_DEPS
REAL_LIBSLAB_CFLAGS = -I$(top_srcdir)/libslab
REAL_LIBSLAB_LIBS = $(top_builddir)/libslab/libslab.la
else
REAL_LIBSLAB_CFLAGS = $(EXTERNAL_LIBSLAB_CFLAGS)
REAL_LIBSLAB_LIBS = $(EXTERNAL_LIBSLAB_LIBS)
endif

INCLUDES =					\
	-I$(top_srcdir)				\
	$(REAL_LIBSLAB_CFLAGS)			\
	$(MATECC_SHELL_CFLAGS)

bin_PROGRAMS = mate-control-center 

mate_control_center_SOURCES =		\
	control-center.c

mate_control_center_LDADD =						\
	$(MATECC_SHELL_LIBS)						\
	$(REAL_LIBSLAB_LIBS)

AM_CPPFLAGS =							\
	-DMATELOCALEDIR="\"$(datadir)/locale\""

sysdir = $(datadir)/applications
sys_in_files = matecc.desktop.in
sys_DATA = $(sys_in_files:.desktop.in=.desktop)
@INTLTOOL_DESKTOP_RULE@

directorydir = $(datadir)/desktop-directories
directory_in_files = matecc.directory.in
directory_DATA = $(directory_in_files:.directory.in=.directory)
@INTLTOOL_DIRECTORY_RULE@

schemasdir   = @MATECONF_SCHEMA_FILE_DIR@
schemas_DATA = control-center.schemas
@INTLTOOL_SCHEMAS_RULE@

install-data-local: $(schema_DATA)
if MATECONF_SCHEMAS_INSTALL
	if test -z "$(DESTDIR)" ; then \
		for p in $^ ; do \
			MATECONF_CONFIG_SOURCE=$(MATECONF_SCHEMA_CONFIG_SOURCE) $(MATECONFTOOL) --makefile-install-rule $$p 2>&1 > /dev/null; \
		done \
	fi
endif

menudir = $(sysconfdir)/xdg/menus
menu_DATA = matecc.menu

EXTRA_DIST = matecc.desktop.in.in matecc.directory.in matecc.menu $(schemas_DATA).in

DISTCLEANFILES = matecc.desktop matecc.desktop.in matecc.directory $(schemas_DATA)

-include $(top_srcdir)/git.mk