Makefile.am 1.35 KB
Newer Older
1
# This is used in PANEL_CFLAGS
Bastien Nocera's avatar
Bastien Nocera committed
2
3
cappletname = common

4
noinst_LTLIBRARIES = liblanguage.la
5
noinst_PROGRAMS = list-languages
6
7

AM_CPPFLAGS =						\
8
9
	$(PANEL_CFLAGS)					\
	$(LIBLANGUAGE_CFLAGS)				\
10
	-DLIBLOCALEDIR=\""$(prefix)/lib/locale"\"       \
11
12
13
14
15
	-DGNOMELOCALEDIR=\""$(datadir)/locale"\"

BUILT_SOURCES =			\
	cc-common-resources.c	\
	cc-common-resources.h
16
17

liblanguage_la_SOURCES =		\
18
	$(BUILT_SOURCES)		\
19
20
21
22
	gdm-languages.h 		\
	gdm-languages.c 		\
	locarchive.h			\
	cc-common-language.c		\
23
24
25
	cc-common-language.h		\
	cc-language-chooser.c		\
	cc-language-chooser.h
26
27

liblanguage_la_LIBADD = 		\
28
	$(LIBLANGUAGE_LIBS)
29

30
31
32
33
list_languages_SOURCES = list-languages.c
list_languages_LDADD = liblanguage.la
list_languages_CFLAGS = $(LIBLANGUAGE_CFLAGS)

34
35
36
37
38
resource_files = $(shell glib-compile-resources --generate-dependencies $(srcdir)/common.gresource.xml)
cc-common-resources.c: common.gresource.xml $(resource_files)
	$(AM_V_GEN) glib-compile-resources --target=$@ --sourcedir=$(srcdir) --generate-source --c-name cc_common $<
cc-common-resources.h: common.gresource.xml $(resource_files)
	$(AM_V_GEN) glib-compile-resources --target=$@ --sourcedir=$(srcdir) --generate-header --c-name cc_common $<
39

40
41
42
rulesdir = $(datadir)/polkit-1/rules.d/
rules_DATA = gnome-control-center.rules

43
44
EXTRA_DIST = $(rules_DATA) $(resource_files)
CLEANFILES = $(BUILT_SOURCES)
45

46
-include $(top_srcdir)/git.mk