From 9bc557bf8812a05ccd22343ffb7c9ce09d010ca9 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 6 Nov 2003 08:03:27 +0000 Subject: (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. --- man/Makefile.am | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'man') 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 -- cgit v1.2.3-70-g09d2