summaryrefslogtreecommitdiffstats
path: root/cmd/arc_summary/Makefile.am
blob: ee758006e3a100b4b65a23b5061bdf317fffd6e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
transform = $(program_transform_name)

if USING_PYTHON_2
SCRIPT = arc_summary2
else
SCRIPT = arc_summary3
endif

dist_bin_SCRIPTS = $(SCRIPT)

install-exec-hook:
	before=$$(echo $(SCRIPT) | sed '$(transform)'); \
	after=$$(echo arc_summary | sed '$(transform)'); \
	mv "$(DESTDIR)$(bindir)/$$before" "$(DESTDIR)$(bindir)/$$after"