(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.
This commit is contained in:
Jim Meyering committed 2003-11-06 08:03:27 +00:00
1 parent 9e4ee6ce82
commit 9bc557bf88
1 file changed
+5 -4
+5 -4
View File
@@ -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