aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-12-16 19:28:00 -0500
committerMike Frysinger <vapier@gentoo.org>2015-12-16 19:28:00 -0500
commit146fe9fb4ece2294e9233947aea1826f585dc3c9 (patch)
tree9c64a16e84b2ff2a909ce14a45d74150a99dac07
parentuse `sed -E -i.tmp` everywhere (diff)
downloadpax-utils-146fe9fb4ece2294e9233947aea1826f585dc3c9.tar.gz
pax-utils-146fe9fb4ece2294e9233947aea1826f585dc3c9.tar.bz2
pax-utils-146fe9fb4ece2294e9233947aea1826f585dc3c9.zip
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.
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
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); \