blob: d8da90251ea33892a745fce942766b8f935e1965 (
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
|
plugindir = $(libexecdir)/xfce4/panel-plugins
plugin_PROGRAMS = xfce4-menu-plugin
xfce4_menu_plugin_SOURCES = \
desktop-menu-plugin.c
xfce4_menu_plugin_CFLAGS = \
-I$(top_srcdir)/common \
$(LIBX11_CFLAGS) \
$(LIBXFCEGUI4_CFLAGS) \
$(LIBXFCE4PANEL_CFLAGS) \
-DDATADIR=\"$(datadir)\" \
-DLOCALEDIR=\"$(localedir)\" \
-DBINDIR=\"$(bindir)\"
xfce4_menu_plugin_LDADD = \
$(top_builddir)/common/libxfdesktop-menu.la \
$(top_builddir)/common/libxfdesktop.la \
$(LIBX11_LIBS) \
$(LIBXFCEGUI4_LIBS) \
$(LIBXFCE4PANEL_LIBS)
if HAVE_CYGWIN
xfce4_menu_plugin_LDFLAGS = \
-no-undefined \
-export-symbols $(datadir)/xfce4/devel/panel.def
endif
bin_PROGRAMS = xfce4-popup-menu
xfce4_popup_menu_SOURCES = \
xfce4-popup-menu.h \
xfce4-popup-menu.c
xfce4_popup_menu_CFLAGS = \
$(LIBX11_CFLAGS) \
$(GTK_CFLAGS)
xfce4_popup_menu_LDADD = \
$(LIBX11_LDFLAGS) \
$(LIBX11_LIBS) \
$(GTK_LIBS)
# .desktop file
#
# Some automake trickery here. Because we cannot use $(libexecdir) in the
# automake stage, we'll use sed to get the full path into the .desktop file.
# We also need to let intltool merge the translated fields, so we add an
# additional level of indirection: a <name>.desktop.in.in file.
#
desktop_in_in_files = xfce4-menu.desktop.in.in
desktop_in_files = $(desktop_in_in_files:.desktop.in.in=.desktop.in)
desktopdir = $(datadir)/xfce4/panel-plugins
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
@INTLTOOL_DESKTOP_RULE@
EXTRA_DIST = $(desktop_in_in_files)
DISTCLEANFILES = \
$(desktop_DATA) $(desktop_in_files)
# get full path into .desktop file
%.desktop.in: %.desktop.in.in
sed -e "s^@PLUGIN_PATH@^$(libexecdir)/xfce4/panel-plugins^" \
$< > $@
|