From 861ca3f0aeeb0cb322c6c00e84678b9cec24226b Mon Sep 17 00:00:00 2001 From: Sveta Smirnova Date: Fri, 9 Jan 2026 16:22:46 +0300 Subject: [PATCH] PT-2506 - make install does not install Go tools - Modified Makefile.PL, so it installs Go tools as well - Added clean instruction for Go tools --- Makefile.PL | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Makefile.PL b/Makefile.PL index 9879e1d5..ce088ecc 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -3,8 +3,18 @@ use ExtUtils::MY; sub MY::postamble { return <<'MAKE_GOTOOLS'; +pkgs = $(shell find src/go -type d -name "pt-*" -exec basename {} \;) + gotools: cd src/go && $(MAKE) build + @$(foreach pkg,$(pkgs),cp bin/$(pkg) $(INST_SCRIPT);) + +goclean: + @$(foreach pkg,$(pkgs),rm -f bin/$(pkg) 2> /dev/null;) + +all :: gotools +install :: gotools +clean :: goclean MAKE_GOTOOLS } @@ -18,7 +28,7 @@ WriteMakefile( map { (my $name = $_) =~ s/^bin.//; my $file_name = $_; -if ( $file_name =~ m/(mongo|pg|galera|k8s|secure)/ ) { + if ( $file_name =~ m/(mongo|pg|galera|k8s|secure)/ ) { # We have to put empty line here to avoid the MAN1PODS hash corruption '' => '', }