summaryrefslogtreecommitdiff
path: root/src/capplet/Makefile.am
blob: bf2ad403f717ae1d3db8c7f85f3c0b15a7180dbb (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
define generate_resources_deps
	$(shell $(GLIB_COMPILE_RESOURCES) --generate-dependencies --sourcedir $(srcdir) $(srcdir)/$(1))
endef

bin_PROGRAMS = mate-notification-properties
libexec_PROGRAMS = mate-notification-applet

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

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)

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
mate_notification_applet_SOURCES = \
	$(mate_notification_applet_resources_files) \
	../common/constants.h \
	mate-notification-applet.c \
	$(NULL)

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