2016-01-25 08:13:49 -06:00
|
|
|
TOOL_MERGE=$(top_srcdir)/plugins/externaltools/scripts/xedit-tool-merge.pl
|
2011-11-07 13:46:58 -06:00
|
|
|
|
|
|
|
tools_in_files = \
|
|
|
|
build.tool.in \
|
|
|
|
open-terminal-here.tool.in \
|
2015-08-25 06:40:58 -05:00
|
|
|
remove-trailing-spaces.tool.in \
|
2011-11-12 01:26:45 -06:00
|
|
|
run-command.tool.in \
|
2011-11-22 11:38:03 -06:00
|
|
|
search-recursive.tool.in \
|
2011-11-27 17:14:18 -06:00
|
|
|
switch-c.tool.in
|
2011-11-07 13:46:58 -06:00
|
|
|
|
|
|
|
install_tools_in_files = $(tools_in_files)
|
|
|
|
|
|
|
|
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=)
|
2016-01-25 08:13:49 -06:00
|
|
|
toolsdir = $(XEDIT_PLUGINS_DATA_DIR)/externaltools/tools
|
2011-11-07 13:46:58 -06:00
|
|
|
|
|
|
|
all_tools_in_files = \
|
2015-08-25 06:40:58 -05:00
|
|
|
$(tools_in_files)
|
2011-11-07 13:46:58 -06:00
|
|
|
|
|
|
|
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
|