summaryrefslogtreecommitdiff
path: root/nuttx/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/Makefile')
-rw-r--r--nuttx/Makefile14
1 files changed, 7 insertions, 7 deletions
diff --git a/nuttx/Makefile b/nuttx/Makefile
index d27c28f39..c7351b0e6 100644
--- a/nuttx/Makefile
+++ b/nuttx/Makefile
@@ -63,10 +63,10 @@ include/nuttx/config.h: $(TOPDIR)/.config tools/mkconfig
# link the arch/<arch-name>/include dir to include/arch
include/arch: Make.defs
- @if [ -e include/arch ]; then \
- if [ -h include/arch ]; then \
- rm -f include/arch ; \
- else \
+ @if [ -h include/arch ]; then \
+ rm -f include/arch ; \
+ else \
+ if [ -e include/arch ]; then \
echo "include/arch exists but is not a symbolic link" ; \
exit 1 ; \
fi ; \
@@ -75,10 +75,10 @@ include/arch: Make.defs
# Link the configs/<board-name>/include dir to include/arch/board
include/arch/board: Make.defs include/arch
- @if [ -e include/arch/board ]; then \
- if [ -h include/arch/board ]; then \
+ @if [ -h include/arch/board ]; then \
rm -f include/arch/board ; \
- else \
+ else \
+ if [ -e include/arch/board ]; then \
echo "include/arch/board exists but is not a symbolic link" ; \
exit 1 ; \
fi ; \