summaryrefslogtreecommitdiff
path: root/battstat/Makefile.am
blob: aac54cf12676f3de4e44b80c46f7dd65854330bf (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

builder_DATA = battstat_applet.ui

ACPIINC= @ACPIINC@

if NEED_LIBAPM
if HAVE_LIBAPM
APMLIB = -lapm
APMDIR =
APMINC = 
else
APMLIB = apmlib/libapm.a
APMDIR = apmlib
APMINC = -I$(srcdir)/apmlib/
endif
else
APMLIB =
APMDIR =
APMINC = 
endif

SUBDIRS = docs sounds $(APMDIR)

DIST_SUBDIRS = docs sounds apmlib

INCLUDES =					\
	$(GNOME_APPLETS_CFLAGS)			\
	$(LIBNOTIFY_CFLAGS)			\
	$(HAL_CFLAGS)				\
	$(APMINC)				\
	$(ACPIINC)				\
	-DG_LOG_DOMAIN=\"battstat_applet\"


libexec_PROGRAMS = battstat-applet-2


battstat_applet_2_SOURCES = \
	battstat.h \
	pixmaps.h \
	properties.c \
	battstat_applet.c \
	power-management.c \
	acpi-linux.c \
	acpi-linux.h \
	acpi-freebsd.c \
	acpi-freebsd.h \
	battstat-hal.c \
	battstat-hal.h


battstat_applet_2_LDADD = \
		     $(GNOME_APPLETS_LIBS) \
		     $(LIBNOTIFY_LIBS) \
		     $(HAL_LIBS) \
		     $(APMLIB)

schemasdir   = @GCONF_SCHEMA_FILE_DIR@
schemas_in_files = battstat.schemas.in
schemas_DATA = $(schemas_in_files:.schemas.in=.schemas)

@INTLTOOL_SCHEMAS_RULE@

if GCONF_SCHEMAS_INSTALL
install-data-local:
	GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(schemas_DATA) ;
endif

serverdir       = $(libdir)/bonobo/servers
server_in_files = GNOME_BattstatApplet.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)|" $< > $@

CLEANFILES = $(server_in_files) $(server_DATA) $(schemas_DATA)

uidir = $(datadir)/gnome-2.0/ui
ui_DATA = GNOME_BattstatApplet.xml

EXTRA_DIST = 			\
	$(builder_DATA)		\
	$(ui_DATA)		\
	GNOME_BattstatApplet.server.in.in	\
	$(schemas_in_files)


@INTLTOOL_SERVER_RULE@