summaryrefslogtreecommitdiff
path: root/applets/brightness/Makefile.am
blob: c0a6cb680c3233886b2e2eff03d45f3a9f9a3672 (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
INCLUDES =							\
	-I. -I$(srcdir) 					\
	$(GLIB_CFLAGS)						\
	$(DBUS_CFLAGS)						\
	$(MATE_CFLAGS)						\
	$(PANEL_CFLAGS)						\
	$(LIBMATENOTIFY_CFLAGS)					\
	$(GTKUNIQUE_CFLAGS)					\
	-DBINDIR=\"$(bindir)\"			 		\
	-DMATELOCALEDIR=\""$(datadir)/locale"\"	 	\
	-DDATADIR=\"$(datadir)\"				\
	-DPREFIX=\""$(prefix)"\" 				\
	-DSYSCONFDIR=\""$(sysconfdir)"\" 			\
	-DLIBDIR=\""$(libdir)"\" 				\
	-DVERSION="\"$(VERSION)\"" 				\
	-DGPM_DATA=\"$(pkgdatadir)\"				\
	-DEGG_LOG_FILE=\""~/mate-power-manager.log"\"		\
	-DEGG_VERBOSE="\"GPM_VERBOSE\""				\
	-DEGG_LOGGING="\"GPM_LOGGING\""				\
	-DEGG_CONSOLE="\"GPM_CONSOLE\""				\
	-I$(top_srcdir)/libdbus-glib				\
	$(NULL)

libexec_PROGRAMS=mate-brightness-applet

mate_brightness_applet_SOURCES =				\
	brightness-applet.c					\
	egg-dbus-monitor.c					\
	egg-dbus-monitor.h					\
	egg-debug.c						\
	egg-debug.h						\
	gpm-common.c						\
	gpm-common.h

mate_brightness_applet_LDADD =					\
	$(DBUS_LIBS)						\
	$(MATE_LIBS)						\
	$(PANEL_LIBS)

serverdir       = $(libdir)/matecomponent/servers
server_in_files = MATE_BrightnessApplet.server.in
server_DATA     = $(server_in_files:.server.in=.server)

$(server_in_files): $(server_in_files:.server.in=.server.in.in)
	sed -e "s|\@LIBEXECDIR\@|$(libexecdir)|" -e "s|\@VERSION\@|$(VERSION)|" $< > $@

@INTLTOOL_SERVER_RULE@

uidir   = $(datadir)/mate-2.0/ui
ui_DATA = MATE_BrightnessApplet.xml

EXTRA_DIST = MATE_BrightnessApplet.server.in.in $(ui_DATA)

DISTCLEANFILES =						\
	$(server_DATA) $(server_DATA).in