summaryrefslogtreecommitdiff
path: root/panels/bluetooth/Makefile.am
blob: 9117fc25ddae4463754931040dcd8de292217b98 (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
# This is used in PANEL_CFLAGS
cappletname = bluetooth

noinst_LTLIBRARIES = libbluetooth.la

AM_CPPFLAGS = 						\
	$(PANEL_CFLAGS)					\
	$(BLUETOOTH_CFLAGS)				\
	-DGNOMELOCALEDIR="\"$(datadir)/locale\""	\
	$(NULL)

BUILT_SOURCES =				\
	cc-bluetooth-resources.h	\
	cc-bluetooth-resources.c

libbluetooth_la_SOURCES =			\
	$(BUILT_SOURCES)			\
	cc-bluetooth-panel.c			\
	cc-bluetooth-panel.h

libbluetooth_la_LIBADD = $(PANEL_LIBS) $(BLUETOOTH_LIBS)

resource_files = $(shell glib-compile-resources --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/bluetooth.gresource.xml)
cc-bluetooth-resources.c: bluetooth.gresource.xml $(resource_files)
	$(AM_V_GEN) glib-compile-resources --target=$@ --sourcedir=$(srcdir) --generate-source --c-name cc_bluetooth $<
cc-bluetooth-resources.h: bluetooth.gresource.xml $(resource_files)
	$(AM_V_GEN) glib-compile-resources --target=$@ --sourcedir=$(srcdir) --generate-header --c-name cc_bluetooth $<

desktopdir = $(datadir)/applications
desktop_in_in_files = gnome-bluetooth-panel.desktop.in.in
desktop_in_files = gnome-bluetooth-panel.desktop.in
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
@INTLTOOL_DESKTOP_RULE@

CLEANFILES = $(desktop_DATA) $(BUILT_SOURCES)
EXTRA_DIST = $(man_MANS) $(desktop_in_in_files) $(resource_files) bluetooth.gresource.xml

-include $(top_srcdir)/git.mk