diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-03-25 13:16:27 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-03-25 13:16:27 +0000 |
commit | 3a5002af1855fbc7989ea994301abaa420be6db3 (patch) | |
tree | b21ce56d7d20256e9d5a2f747e1e114784f5514b /nuttx/Makefile | |
parent | 40220c909fa3d16296ef0d6cdd12cf209c16674e (diff) | |
download | px4-nuttx-3a5002af1855fbc7989ea994301abaa420be6db3.tar.gz px4-nuttx-3a5002af1855fbc7989ea994301abaa420be6db3.tar.bz2 px4-nuttx-3a5002af1855fbc7989ea994301abaa420be6db3.zip |
Makefile would sometimes create spurious links
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@145 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/Makefile')
-rw-r--r-- | nuttx/Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/nuttx/Makefile b/nuttx/Makefile index 73a6f0a31..e41e9cbb1 100644 --- a/nuttx/Makefile +++ b/nuttx/Makefile @@ -58,7 +58,15 @@ include/nuttx/config.h: $(TOPDIR)/.config tools/mkconfig tools/mkconfig $(TOPDIR) > include/nuttx/config.h include/arch: include/nuttx/config.h - ln -sf $(TOPDIR)/$(ARCH_DIR)/include include/arch + @if [ -e include/arch ]; then \ + if [ -h include/arch ]; then \ + rm -f include/arch ; \ + else \ + echo "include/arch exists but is not a symbolic link" ; \ + exit 1 ; \ + fi ; \ + fi + @ln -s $(TOPDIR)/$(ARCH_DIR)/include include/arch context: check_context include/nuttx/config.h include/arch |