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
|
plugindir = $(libexecdir)/xfce4/panel-plugins
plugin_PROGRAMS = xfce4-messenger-plugin
xfce4_messenger_plugin_SOURCES = \
plugin.c \
preferences.c \
preferences.h \
preferences-dialog.c \
preferences-dialog.h \
listener.c \
listener.h \
history.c \
history.h \
iconset.c \
iconset.h \
popup.c \
popup.h
xfce4_messenger_plugin_CFLAGS = \
-DPACKAGE_LOCALE_DIR=\"$(localedir)\" \
@LIBXFCE4PANEL_CFLAGS@ \
@LIBXFCEGUI4_CFLAGS@ \
@GLIB_CFLAGS@ \
@GOBJECT_CFLAGS@ \
@GTK_CFLAGS@ \
@DBUS_CFLAGS@ \
@DBUS_GLIB_CFLAGS@
xfce4_messenger_plugin_LDADD = \
@LIBXFCE4PANEL_LIBS@ \
@LIBXFCEGUI4_LIBS@ \
@GLIB_LIBS@ \
@GOBJECT_LIBS@ \
@GTK_LIBS@ \
@DBUS_LIBS@ \
@DBUS_GLIB_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 = messenger.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@
# get full path into .desktop file
%.desktop.in: %.desktop.in.in
sed -e "s^@PLUGIN_PATH@^$(libexecdir)/xfce4/panel-plugins^" \
$< > $@
EXTRA_DIST = \
$(desktop_in_in_files)
DISTCLEANFILES = \
$(desktop_DATA) $(desktop_in_files)
|