diff options
Diffstat (limited to 'cmd/arc_summary/Makefile.am')
-rw-r--r-- | cmd/arc_summary/Makefile.am | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/cmd/arc_summary/Makefile.am b/cmd/arc_summary/Makefile.am index e9dbb779a..ee758006e 100644 --- a/cmd/arc_summary/Makefile.am +++ b/cmd/arc_summary/Makefile.am @@ -1,17 +1,14 @@ -EXTRA_DIST = arc_summary2 arc_summary3 - transform = $(program_transform_name) if USING_PYTHON_2 -dist_bin_SCRIPTS = arc_summary2 -install-exec-hook: - before=$$(echo arc_summary2 | sed '$(transform)'); \ - after=$$(echo arc_summary | sed '$(transform)'); \ - mv "$(DESTDIR)$(bindir)/$$before" "$(DESTDIR)$(bindir)/$$after" +SCRIPT = arc_summary2 else -dist_bin_SCRIPTS = arc_summary3 +SCRIPT = arc_summary3 +endif + +dist_bin_SCRIPTS = $(SCRIPT) + install-exec-hook: - before=$$(echo arc_summary3 | sed '$(transform)'); \ + before=$$(echo $(SCRIPT) | sed '$(transform)'); \ after=$$(echo arc_summary | sed '$(transform)'); \ mv "$(DESTDIR)$(bindir)/$$before" "$(DESTDIR)$(bindir)/$$after" -endif |