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 | b3dc41c67b898190a52a3cd401485bf8786ce1c1 (patch) | |
tree | ae5ab6eb517babf4b25bd1dd29a492a14278936c | |
parent | 52b0ae8fe898aca2f39d5f6b9e4fcb411edbeda7 (diff) | |
download | dmapi-dev-b3dc41c67b898190a52a3cd401485bf8786ce1c1.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 |