From: Craig Small Date: Wed, 24 Feb 2021 09:58:28 +0000 (+1100) Subject: build-sys: Fix the uninstall-man target X-Git-Tag: v4.0.0~228 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3d0e7f3d03253f86a53804a84959d2d6fc903567;p=procps-ng build-sys: Fix the uninstall-man target If automake doesn't see a dist_man_MANS then there is no uninstall-man target. This fix uses the main Makefile targets. Signed-off-by: Craig Small --- diff --git a/Makefile.am b/Makefile.am index 454a04ff..ec3885b5 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,4 +1,3 @@ -## Process this file with automake to produce Makefile.in CYGWINFLAGS = if CYGWIN diff --git a/man-po/Makefile.am b/man-po/Makefile.am index 3d421072..6a4eb570 100644 --- a/man-po/Makefile.am +++ b/man-po/Makefile.am @@ -23,7 +23,6 @@ LINGUAS_DIST = $(shell sed -ne 's/^.*\[po4a_langs\] \(.*\)$$/\1/p' $(srcdir)/po4 # If the user has not defined it let's use the default. LINGUAS ?= $(LINGUAS_DIST) - PO4A_V = $(PO4A_V_@AM_V@) PO4A_V_ = $(PO4A_V_@AM_DEFAULT_V@) PO4A_V_0 = @echo " PO4A $@"; @@ -67,7 +66,7 @@ install-data-local: files="$$files $(srcdir)/$$lang/$$trans"; \ fi; \ done; \ - $(MAKE) install-man \ + $(MAKE) -C .. install-man \ mandir="$(mandir)/$$lang" \ man_MANS="" \ dist_man_MANS="$$files"; \ @@ -83,7 +82,7 @@ uninstall-local: files="$$files $(srcdir)/$$lang/$$trans"; \ fi; \ done; \ - $(MAKE) uninstall-man \ + $(MAKE) -C .. uninstall-man \ mandir="$(mandir)/$$lang" \ man_MANS="" \ dist_man_MANS="$$files"; \