commit:     146fe9fb4ece2294e9233947aea1826f585dc3c9
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 17 00:28:00 2015 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Thu Dec 17 00:28:00 2015 +0000
URL:        https://gitweb.gentoo.org/proj/pax-utils.git/commit/?id=146fe9fb

build: defer man page expansion

The $(wildcard) inside the rule is expanded before the `make man` step,
so if the man pages don't already exist, we don't get the latest list.
Defer the expansion to the shell step so it's always up-to-date.

 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index b3782a6..6375315 100644
--- a/Makefile
+++ b/Makefile
@@ -168,7 +168,7 @@ autotools-update:
        ( \
                echo "$(GEN_MARK_START)"; \
                printf 'dist_man_MANS +='; \
-               printf ' \\\n\t%s' $(wildcard man/*.1); \
+               printf ' \\\n\t%s' `printf '%s\n' man/*.1 | LC_ALL=C sort`; \
                echo; \
                printf 'EXTRA_DIST +='; \
                printf ' \\\n\t%s' $(EXTRA_DIST); \

Reply via email to