diff options
author | Nathan Scott <nathans@sgi.com> | 2006-08-21 06:10:10 +0000 |
---|---|---|
committer | Nathan Scott <nathans@sgi.com> | 2006-08-21 06:10:10 +0000 |
commit | 6fcfa34114bec2885e6e46782df670ba98ba5034 (patch) | |
tree | 3a85ababcce1897e153e9d877bedbda72ceb6a6b /include | |
parent | 7ddb61fed1c886a0bf6f4036bdc28237bff8a4fa (diff) | |
download | acl-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/buildmacros | 8 |
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 |