]> granicus.if.org Git - procps-ng/commitdiff
build-sys: Fix the uninstall-man target
authorCraig Small <csmall@dropbear.xyz>
Wed, 24 Feb 2021 09:58:28 +0000 (20:58 +1100)
committerCraig Small <csmall@dropbear.xyz>
Wed, 24 Feb 2021 09:58:28 +0000 (20:58 +1100)
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 <csmall@dropbear.xyz>
Makefile.am
man-po/Makefile.am

index 454a04ff98e787f9fa82bc427a77dd811dfc70c6..ec3885b54581986a705ee0551608993380765747 100644 (file)
@@ -1,4 +1,3 @@
-## Process this file with automake to produce Makefile.in
 
 CYGWINFLAGS =
 if CYGWIN
index 3d4210722b27338b8967945095e0a61496ffc124..6a4eb570401c3dfa6ff8d0cb95a4588c8288f08a 100644 (file)
@@ -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"; \