Install zarcstat and zarcsummary symlinks in Makefile

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
Closes #16357
Closes #17695
This commit is contained in:
Shengqi Chen
2025-09-03 23:58:42 +08:00
committed by Brian Behlendorf
parent cbc6d57012
commit f8e2152db7
3 changed files with 12 additions and 3 deletions
+5 -1
View File
@@ -107,8 +107,12 @@ $(call SUBST,dbufstat,%D%/)
$(call SUBST,zilstat,%D%/)
arc_summary: %D%/arc_summary
$(AM_V_at)cp $< $@
endif
cmd-rename-install-exec-hook:
$(LN_S) arcstat $(DESTDIR)$(bindir)/zarcstat
$(LN_S) arc_summary $(DESTDIR)$(bindir)/zarcsummary
INSTALL_EXEC_HOOKS += cmd-rename-install-exec-hook
endif
PHONY += cmd
cmd: $(bin_SCRIPTS) $(bin_PROGRAMS) $(sbin_SCRIPTS) $(sbin_PROGRAMS) $(dist_bin_SCRIPTS) $(zfsexec_PROGRAMS) $(mounthelper_PROGRAMS)
+3 -2
View File
@@ -18,6 +18,7 @@ zstream_LDADD = \
libzpool.la \
libnvpair.la
PHONY += install-exec-hook
install-exec-hook:
cmd-zstream-install-exec-hook:
cd $(DESTDIR)$(sbindir) && $(LN_S) -f zstream zstreamdump
INSTALL_EXEC_HOOKS += cmd-zstream-install-exec-hook