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
|
plugindir = $(libdir)/xfce4/panel-plugins
plugin_LTLIBRARIES = libseparator.la
libseparator_la_LDFLAGS = \
-avoid-version \
-module
libseparator_la_SOURCES = \
separator.c
libseparator_la_CFLAGS = \
-I$(top_srcdir) \
@LIBXFCEGUI4_CFLAGS@ \
-DLOCALEDIR=\"$(localedir)\"
libseparator_la_LIBADD = \
../../libxfce4panel/libxfce4panel.la \
@LIBS@
libseparator_la_DEPENDENCIES = \
../../libxfce4panel/libxfce4panel.la
if HAVE_CYGWIN
libseparator_la_LDFLAGS += \
-no-undefined \
@LIBX11_LDFLAGS@ \
@LIBXFCEGUI4_LIBS@ \
@LIBX11_LIBS@
endif
# .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 = separator.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 $(plugin_LTLIBRARIES)
plugin_name=`grep dlname= $(plugin_LTLIBRARIES) | sed "s/dlname='\(.*\)'/\1/"`; \
sed -e "s^@INTERNAL_PLUGIN_PATH@^$(libdir)/xfce4/panel-plugins^" \
-e "s^@PLUGIN_NAME@^$$plugin_name^" \
$< > $@
|