summaryrefslogtreecommitdiff
path: root/src/capplet/Makefile.am
blob: af7569a8af44cd11145792852888f18937ab5e91 (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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
define generate_resources_deps
	$(shell $(GLIB_COMPILE_RESOURCES) --generate-dependencies --sourcedir $(srcdir) $(srcdir)/$(1))
endef

bin_PROGRAMS = mate-notification-properties

if ENABLE_IN_PROCESS
pkglib_LTLIBRARIES = libmate-notification-applet.la
else
libexec_PROGRAMS = mate-notification-applet
endif
NULL =

mate_notification_properties_CFLAGS = \
	-I$(top_srcdir) \
	-I$(top_srcdir)/src/common \
	-I$(top_srcdir)/src/daemon \
	$(NOTIFICATION_CAPPLET_CFLAGS) \
	-DENGINES_DIR=\"$(libdir)/mate-notification-daemon/engines\" \
	-DNOTIFICATION_LOCALEDIR=\"$(datadir)/locale\" \
	$(WARN_CFLAGS) \
	$(NULL)

mate_notification_properties_LDADD = \
	$(NOTIFICATION_CAPPLET_LIBS) \
	$(NULL)

mate_notification_properties_resources_xml   = org.mate.notifications.properties.gresource.xml
mate_notification_properties_resources_deps  = $(call generate_resources_deps $(mate_notification_properties_resources_xml))
mate_notification_properties_resources_files = mate-notification-properties-resources.h mate-notification-properties-resources.c
$(mate_notification_properties_resources_files): $(mate_notification_properties_resources_xml) Makefile $(mate_notification_properties_resources_deps)
	$(AM_V_GEN) XMLLINT=$(XMLLINT) $(GLIB_COMPILE_RESOURCES) $< \
		--target $@ --sourcedir $(srcdir) --generate --c-name notification_properties
mate_notification_properties_SOURCES = \
	$(mate_notification_properties_resources_files) \
	../common/constants.h \
	mate-notification-properties.c \
	$(NULL)

man_MANS = mate-notification-properties.1

if ENABLE_IN_PROCESS

libmate_notification_applet_la_SOURCES = \
	$(mate_notification_applet_resources_files) \
	../common/constants.h \
	mate-notification-applet.c \
	$(NULL)

libmate_notification_applet_la_CFLAGS = \
	-I$(top_srcdir)/src/common \
	$(NOTIFICATION_APPLET_CFLAGS) \
	-DMATELOCALEDIR=\"$(datadir)/locale\" \
	-DRESOURCE_PATH=\""/org/mate/panel/applet/notifications/"\" \
	$(WARN_CFLAGS) \
	$(NULL)

libmate_notification_applet_la_LIBADD = \
	$(NOTIFICATION_APPLET_LIBS) \
	$(NULL)

else
mate_notification_applet_SOURCES = \
	$(mate_notification_applet_resources_files) \
	../common/constants.h \
	mate-notification-applet.c \
	$(NULL)

mate_notification_applet_CFLAGS = \
	-I$(top_srcdir)/src/common \
	$(NOTIFICATION_APPLET_CFLAGS) \
	-DMATELOCALEDIR=\"$(datadir)/locale\" \
	-DRESOURCE_PATH=\""/org/mate/panel/applet/notifications/"\" \
	$(WARN_CFLAGS) \
	$(NULL)

mate_notification_applet_LDADD = \
	$(NOTIFICATION_APPLET_LIBS) \
	$(NULL)

endif

mate_notification_applet_resources_xml   = org.mate.panel.applet.notifications.gresource.xml
mate_notification_applet_resources_deps  = $(call generate_resources_deps $(mate_notification_applet_resources_xml))
mate_notification_applet_resources_files = mate-notification-applet-resources.h mate-notification-applet-resources.c
$(mate_notification_applet_resources_files): $(mate_notification_applet_resources_xml) Makefile $(mate_notification_applet_resources_deps)
	$(AM_V_GEN) XMLLINT=$(XMLLINT) $(GLIB_COMPILE_RESOURCES) $< \
		--target $@ --sourcedir $(srcdir) --generate --c-name notification_applet


BUILT_SOURCES = \
	$(mate_notification_properties_resources_files) \
	$(mate_notification_applet_resources_files) \
	$(NULL)

CLEANFILES = \
	$(BUILT_SOURCES) \
	$(NULL)

EXTRA_DIST = \
	$(man_MANS) \
	$(pixmap_DATA) \
	$(mate_notification_applet_resources_xml) \
	$(mate_notification_properties_resources_xml) \
	mate-notification-applet-menu.xml \
	mate-notification-properties.ui \
	$(NULL)

-include $(top_srcdir)/git.mk