plugindir = $(libexecdir)/xfce4/panel-plugins plugin_PROGRAMS = xfce4-orageclock-plugin xfce4_orageclock_plugin_CFLAGS = \ -DPACKAGE_DATA_DIR=\"$(datadir)\" \ -DPACKAGE_LOCALE_DIR=\"$(localedir)\" \ @LIBXFCE4PANEL_CFLAGS@ \ @LIBXFCEGUI4_CFLAGS@ xfce4_orageclock_plugin_LDADD = \ @LIBXFCE4PANEL_LIBS@ \ @LIBXFCEGUI4_LIBS@ \ -lX11 xfce4_orageclock_plugin_SOURCES = \ oc_config.c \ timezone_selection.c \ timezone_selection.h \ tz_zoneinfo_read.c \ tz_zoneinfo_read.h \ xfce4-orageclock-plugin.c \ xfce4-orageclock-plugin.h if HAVE_CYGWIN xfce4_orageclock_plugin_LDFLAGS = \ -no-undefined \ @LIBXFCEGUI4_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 .desktop.in.in file. # desktop_in_in_files = xfce4-orageclock-plugin.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 xfce4-orageclock-plugin.desktop.in: xfce4-orageclock-plugin.desktop.in.in sed -e "s^@PLUGIN_PATH@^$(libexecdir)/xfce4/panel-plugins^" \ $< > $@