From 475857723dee84a68b675a56ca0ea2e81c2f626e Mon Sep 17 00:00:00 2001 From: Anna Schumaker Date: Tue, 22 Feb 2022 12:28:47 -0500 Subject: rpcctl: Add installation to the Makefile And create a shell script that launches the python program from the $(libdir) Signed-off-by: Anna Schumaker Signed-off-by: Steve Dickson --- tools/Makefile.am | 2 +- tools/rpcctl/Makefile.am | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 tools/rpcctl/Makefile.am (limited to 'tools') diff --git a/tools/Makefile.am b/tools/Makefile.am index 9b4b080..c3feabb 100644 --- a/tools/Makefile.am +++ b/tools/Makefile.am @@ -12,6 +12,6 @@ if CONFIG_NFSDCLD OPTDIRS += nfsdclddb endif -SUBDIRS = locktest rpcdebug nlmtest mountstats nfs-iostat nfsdclnts $(OPTDIRS) +SUBDIRS = locktest rpcdebug nlmtest mountstats nfs-iostat rpcctl nfsdclnts $(OPTDIRS) MAINTAINERCLEANFILES = Makefile.in diff --git a/tools/rpcctl/Makefile.am b/tools/rpcctl/Makefile.am new file mode 100644 index 0000000..33fb431 --- /dev/null +++ b/tools/rpcctl/Makefile.am @@ -0,0 +1,13 @@ +## Process this file with automake to produce Makefile.in +PYTHON_FILES = rpcctl.py + +man8_MANS = rpcctl.man + +EXTRA_DIST = $(man8_MANS) $(PYTHON_FILES) + +all-local: $(PYTHON_FILES) + +install-data-hook: + $(INSTALL) -m 755 rpcctl.py $(DESTDIR)$(sbindir)/rpcctl + +MAINTAINERCLEANFILES=Makefile.in -- cgit v1.2.1