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 | 384e0051a8f1ca7769bbc7ef05cf8239ce8fa5f8 (patch) | |
tree | 80dfcc5d544bb122779de7c3d5de11eee3e6053c | |
parent | ed3ca8de79a068ec0195d55d1ee9c1cb61ca0044 (diff) | |
download | attr-384e0051a8f1ca7769bbc7ef05cf8239ce8fa5f8.tar.gz |
Fix symlink detection in userspace Makefiles
Merge of master-melb:xfs-cmds:26825a by kenmcd.
-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 |