summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-11-06 08:03:27 +0000
committerJim Meyering <jim@meyering.net>2003-11-06 08:03:27 +0000
commit9bc557bf8812a05ccd22343ffb7c9ce09d010ca9 (patch)
tree4fc68849e7f82cea48b5c485d5fd22bc9f8ddb36 /man
parent9e4ee6ce82dc66adea87d4482532347f85dfce68 (diff)
downloadcoreutils-9bc557bf8812a05ccd22343ffb7c9ce09d010ca9.tar.xz
(check-programs-vs-x):
Work even if $(programs) contains '$'. Work even if 'missing=1' in environment. Don't report an error simply because $(programs) outputs nothing.
Diffstat (limited to 'man')
-rw-r--r--man/Makefile.am9
1 files changed, 5 insertions, 4 deletions
diff --git a/man/Makefile.am b/man/Makefile.am
index a367c3ddc..f634a8f0c 100644
--- a/man/Makefile.am
+++ b/man/Makefile.am
@@ -160,10 +160,11 @@ programs = \
.PHONY: check-programs-vs-x
check-programs-vs-x:
- test "$(programs)" && : || exit 1
- for p in `$(programs)`; do \
+ status=0; \
+ for p in dummy `$(programs)`; do \
+ test $$p = dummy && continue; \
test $$p = ginstall && p=install || : ; \
test -f $(srcdir)/$$p.x \
- || { echo missing $$p.x 1>&2; missing=1; }; \
+ || { echo missing $$p.x 1>&2; status=1; }; \
done; \
- test "$$missing" = 1 && exit 1 || :
+ exit $$status