xed/plugins/externaltools/data/Makefile.am

68 lines
1.5 KiB
Makefile
Raw Normal View History

2011-11-07 16:52:18 -06:00
TOOL_MERGE=$(top_srcdir)/plugins/externaltools/scripts/pluma-tool-merge.pl
2011-11-07 13:46:58 -06:00
tools_in_files = \
build.tool.in \
remove-trailing-spaces.tool.in
tools_in_linux = \
open-terminal-here.tool.in \
run-command.tool.in \
search-recursive.tool.in \
switch-c.desktop.tool.in
2011-11-07 13:46:58 -06:00
tools_in_osx = \
open-terminal-here-osx.tool.in
tools_in_win32 =
install_tools_in_files = $(tools_in_files)
if PLATFORM_OSX
install_tools_in_files += $(tools_in_osx)
else
if PLATFORM_WIN32
install_tools_in_files += $(tools_in_win32)
else
install_tools_in_files += $(tools_in_linux)
endif
endif
desktop_in_files = $(install_tools_in_files:.tool.in=.desktop.in)
desktop_files = $(install_tools_in_files:.tool.in=.desktop)
tools_SCRIPTS = $(install_tools_in_files:.tool.in=)
2011-11-07 16:52:18 -06:00
toolsdir = $(PLUMA_PLUGINS_DATA_DIR)/externaltools/tools
2011-11-07 13:46:58 -06:00
all_tools_in_files = \
$(tools_in_files) \
$(tools_in_linux) \
$(tools_in_osx) \
$(tools_in_win32)
all_desktop_in_files = $(all_tools_in_files:.tool.in=.desktop.in)
all_desktop_files = $(all_tools_in_files:.tool.in=.desktop)
all_tools_files = $(all_tools_in_files:.tool.in=)
@INTLTOOL_DESKTOP_RULE@
# Tools are generated by merging a script file (.tool.in) with a data file
# (.desktop), which happens to be translated using intltool.
$(tools_SCRIPTS): %: %.tool.in %.desktop $(TOOL_MERGE)
perl $(TOOL_MERGE) -o $@ $< $(word 2,$^)
chmod 755 $@
EXTRA_DIST = \
$(all_desktop_in_files) \
$(all_tools_in_files)
CLEANFILES = \
$(all_desktop_files) \
$(all_tools_files)
DISTCLEANFILES = \
$(all_desktop_files) \
$(all_tools_files)
-include $(top_srcdir)/git.mk