summaryrefslogtreecommitdiffstats
path: root/build/rules.mk
diff options
context:
space:
mode:
authorRoy T. Fielding <fielding@apache.org>2001-04-12 22:34:52 +0200
committerRoy T. Fielding <fielding@apache.org>2001-04-12 22:34:52 +0200
commitfdc6afc0aead0564f5b5c03d6f0d0a0333bd25c2 (patch)
treea8678c2d13634591ffe62f0935e104a33ef6338d /build/rules.mk
parentThe ap_f* functions should flush data to the filter that is passed in, (diff)
downloadapache2-fdc6afc0aead0564f5b5c03d6f0d0a0333bd25c2.tar.xz
apache2-fdc6afc0aead0564f5b5c03d6f0d0a0333bd25c2.zip
Fix the shell syntax error that occurs when a for list is empty due to
an empty variable expansion. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88833 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build/rules.mk')
-rw-r--r--build/rules.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/build/rules.mk b/build/rules.mk
index 368905f86c..16c2bf5be6 100644
--- a/build/rules.mk
+++ b/build/rules.mk
@@ -173,8 +173,10 @@ all-p: $(targets)
install-p: $(targets) $(install_targets)
@if test -n '$(PROGRAMS)'; then \
test -d $(bindir) || $(MKINSTALLDIRS) $(bindir); \
- for i in $(PROGRAMS); do \
+ for i in $(PROGRAMS) ""; do \
+ if test "x$$i" != "x"; then \
$(INSTALL_PROGRAM) $$i $(bindir); \
+ fi; \
done; \
fi