summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNathan Scott <nathans@sgi.com>2006-08-21 06:10:10 +0000
committerNathan Scott <nathans@sgi.com>2006-08-21 06:10:10 +0000
commit6fcfa34114bec2885e6e46782df670ba98ba5034 (patch)
tree3a85ababcce1897e153e9d877bedbda72ceb6a6b /include
parent7ddb61fed1c886a0bf6f4036bdc28237bff8a4fa (diff)
downloadacl-6fcfa34114bec2885e6e46782df670ba98ba5034.tar.gz
Fix symlink detection in userspace Makefiles
Merge of master-melb:xfs-cmds:26825a by kenmcd.
Diffstat (limited to 'include')
-rw-r--r--include/buildmacros8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/buildmacros b/include/buildmacros
index 0c81aaa..b2559ef 100644
--- a/include/buildmacros
+++ b/include/buildmacros
@@ -143,10 +143,12 @@ DIST_MAKERULE = \
SOURCE_MAKERULE = \
@test -z "$$DIR" && DIR="."; \
for f in $(SRCFILES) ""; do \
- if test ! -z "$$f"; then $(ECHO) $$DIR/$$f; fi;\
+ test -z "$$f" && break; \
+ test -L "$$f" || $(ECHO) $$DIR/$$f; \
done; \
- for d in `echo $(SUBDIRS)` ; do \
- if test -d "$$d" -a ! -z "$$d"; then \
+ for d in `echo $(SUBDIRS)` ""; do \
+ test -z "$$d" && break; \
+ if test -d "$$d"; then \
$(MAKEF) DIR=$$DIR/$$d -C $$d $@ || exit $$?; \
fi; \
done