Makefile.am 2.93 KB
Newer Older
1
2
3
4
5
6
7
8
AM_CPPFLAGS =							\
	$(LIBPANEL_APPLET_CFLAGS)				\
	$(WNCKLET_CFLAGS)					\
	-I$(top_builddir)					\
	-I$(top_builddir)/applets/wncklet			\
	-I$(top_srcdir)/libpanel-applet				\
	-I$(top_builddir)/libpanel-applet			\
	-DGNOMELOCALEDIR=\""$(prefix)/$(DATADIRNAME)/locale"\"	\
9
	-DWNCK_I_KNOW_THIS_IS_UNSTABLE				\
10
11
12
	$(DISABLE_DEPRECATED_CFLAGS)

AM_CFLAGS = $(WARN_CFLAGS)
13

14
WNCKLET_SOURCES = \
15
	wncklet.c \
16
	wncklet.h \
17
18
19
20
21
22
23
	window-menu.c \
	window-menu.h \
	window-list.c \
	window-list.h \
	workspace-switcher.c \
	workspace-switcher.h \
	showdesktop.c \
Vincent Untz's avatar
Vincent Untz committed
24
25
	showdesktop.h \
	$(BUILT_SOURCES)
26

27
WNCKLET_LDADD =						\
Christian Persch's avatar
Christian Persch committed
28
	../../libpanel-applet/libpanel-applet-4.la	\
29
30
	$(WNCKLET_LIBS)					\
	$(LIBPANEL_APPLET_LIBS)
31

32
if WNCKLET_INPROCESS
33
APPLET_IN_PROCESS = true
34
APPLET_LOCATION   = $(pkglibdir)/$(LIBPANEL_APPLET_API_VERSION)/libwnck-applet.so
35

36
wnck_appletlibdir = $(pkglibdir)/$(LIBPANEL_APPLET_API_VERSION)
37
wnck_appletlib_LTLIBRARIES = libwnck-applet.la
38
39
libwnck_applet_la_SOURCES = $(WNCKLET_SOURCES)
libwnck_applet_la_LIBADD = $(WNCKLET_LDADD)
40
libwnck_applet_la_LDFLAGS = -module -avoid-version
41
libwnck_applet_la_CFLAGS = $(AM_CFLAGS)
42
else
43
44
APPLET_IN_PROCESS = false
APPLET_LOCATION   = $(libexecdir)/wnck-applet
45
46
47
48

libexec_PROGRAMS = wnck-applet
wnck_applet_SOURCES = $(WNCKLET_SOURCES)
wnck_applet_LDADD = $(WNCKLET_LDADD)
49
wnck_applet_CFLAGS = $(AM_CFLAGS)
50
51
endif

52
appletdir       = $(appletsdir)
53
applet_in_files = org.gnome.panel.Wncklet.panel-applet.in
54
applet_DATA     = $(applet_in_files:.panel-applet.in=.panel-applet)
55

56
$(applet_in_files): $(applet_in_files).in Makefile
57
	$(AM_V_GEN)sed \
58
59
60
61
		-e "s|\@LOCATION\@|$(APPLET_LOCATION)|" \
		-e "s|\@IN_PROCESS\@|$(APPLET_IN_PROCESS)|" \
		-e "s|\@VERSION\@|$(PACKAGE_VERSION)|" \
		$< > $@
62

63
@PANEL_INTLTOOL_PANEL_APPLET_RULE@
64

65
66
67
68
69
70
71
if !WNCKLET_INPROCESS
servicedir       = $(datadir)/dbus-1/services
service_in_files = org.gnome.panel.applet.WnckletFactory.service.in
service_DATA     = $(service_in_files:.service.in=.service)

org.gnome.panel.applet.WnckletFactory.service: $(service_in_files)
	$(AM_V_GEN)sed \
72
73
		-e "s|\@LOCATION\@|$(APPLET_LOCATION)|" \
		$< > $@
74
75
endif

Vincent Untz's avatar
Vincent Untz committed
76
77
78
79
80
ui_FILES = 				\
	window-list-menu.xml		\
	window-list.ui			\
	workspace-switcher-menu.xml 	\
	workspace-switcher.ui
81

Vincent Untz's avatar
Vincent Untz committed
82
83
84
85
86
87
88
89
90
91

wncklet-resources.c: wncklet.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --generate-dependencies wncklet.gresource.xml)
	$(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) --generate --c-name wncklet $(srcdir)/$<

wncklet-resources.h: wncklet.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --generate-dependencies wncklet.gresource.xml)
	$(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) --generate --c-name wncklet $(srcdir)/$<

BUILT_SOURCES = 		\
	wncklet-resources.c	\
	wncklet-resources.h
92

93
94
95
EXTRA_DIST = \
	org.gnome.panel.Wncklet.panel-applet.in.in \
	$(service_in_files) \
Vincent Untz's avatar
Vincent Untz committed
96
97
	$(ui_FILES) \
	wncklet.gresource.xml
98

Vincent Untz's avatar
Vincent Untz committed
99
CLEANFILES = $(BUILT_SOURCES) $(applet_DATA) $(applet_DATA).in $(service_DATA)
100
101

-include $(top_srcdir)/git.mk