Makefile.am 1.51 KB
Newer Older
1
2
3
4
5
6
cappletname = online-accounts

SUBDIRS = icons

INCLUDES = 						\
	$(PANEL_CFLAGS)					\
7
	$(ONLINE_ACCOUNTS_PANEL_CFLAGS)			\
8
9
10
	-DGNOMELOCALEDIR="\"$(datadir)/locale\""	\
	$(NULL)

11
noinst_LTLIBRARIES = libonline-accounts.la
12

13
14
15
16
BUILT_SOURCES =				\
	cc-online-accounts-resources.c	\
	cc-online-accounts-resources.h

17
libonline_accounts_la_SOURCES =		\
18
	$(BUILT_SOURCES)		\
19
20
	cc-online-accounts-add-account-dialog.c	\
	cc-online-accounts-add-account-dialog.h	\
21
22
23
24
25
26
27
28
	cc-online-accounts-model.c	\
	cc-online-accounts-model.h	\
	cc-online-accounts-panel.c	\
	cc-online-accounts-panel.h

libonline_accounts_la_LIBADD = $(PANEL_LIBS) $(ONLINE_ACCOUNTS_PANEL_LIBS)
libonline_accounts_la_LDFLAGS = $(PANEL_LDFLAGS)

29
30
31
32
33
resource_files = $(shell glib-compile-resources --generate-dependencies $(srcdir)/online-accounts.gresource.xml)
cc-online-accounts-resources.c: online-accounts.gresource.xml $(resource_files)
	$(AM_V_GEN) glib-compile-resources --target=$@ --sourcedir=$(srcdir) --generate-source --c-name cc_online_accounts $<
cc-online-accounts-resources.h: online-accounts.gresource.xml $(resource_files)
	$(AM_V_GEN) glib-compile-resources --target=$@ --sourcedir=$(srcdir) --generate-header --c-name cc_online_accounts $<
34
35
36
37
38
39
40

@INTLTOOL_DESKTOP_RULE@

desktopdir = $(datadir)/applications
desktop_in_files = gnome-online-accounts-panel.desktop.in
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)

41
42
CLEANFILES = $(desktop_in_files) $(desktop_DATA) $(BUILT_SOURCES)
EXTRA_DIST = $(resource_files) online-accounts.gresource.xml
43
44

-include $(top_srcdir)/git.mk