summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-11-16 12:41:58 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-11-16 12:41:58 +0000
commit5005a9f2ff8fa5549de72c10067753da303f210e (patch)
treec71a30be978332c2b24582697e98963c8d442794 /apps
parent51e0c930ca583196bf1075217cff969a0f7e4619 (diff)
downloadnuttx-5005a9f2ff8fa5549de72c10067753da303f210e.tar.gz
nuttx-5005a9f2ff8fa5549de72c10067753da303f210e.tar.bz2
nuttx-5005a9f2ff8fa5549de72c10067753da303f210e.zip
Changes from Mike
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5361 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps')
-rw-r--r--apps/ChangeLog.txt3
-rw-r--r--apps/Makefile11
-rw-r--r--apps/examples/elf/tests/errno/Makefile3
-rw-r--r--apps/examples/elf/tests/hello/Makefile3
-rw-r--r--apps/examples/elf/tests/helloxx/Makefile9
-rw-r--r--apps/examples/elf/tests/longjmp/Makefile3
-rw-r--r--apps/examples/elf/tests/mutex/Makefile3
-rw-r--r--apps/examples/elf/tests/pthread/Makefile3
-rw-r--r--apps/examples/elf/tests/signal/Makefile3
-rw-r--r--apps/examples/elf/tests/struct/Makefile3
-rw-r--r--apps/examples/elf/tests/task/Makefile3
11 files changed, 27 insertions, 20 deletions
diff --git a/apps/ChangeLog.txt b/apps/ChangeLog.txt
index 1a88900be..c1c5189c4 100644
--- a/apps/ChangeLog.txt
+++ b/apps/ChangeLog.txt
@@ -419,3 +419,6 @@
by Freddie Chopin.
* Makefile, */Makefile: Various fixes for Windows native build. Now uses
make foreach loops instead of shell loops.
+ * apps/examples/elf/test/*/Makefile: OSX doesn't support install -D, use
+ mkdir -p then install without the -D. From Mike Smith.
+
diff --git a/apps/Makefile b/apps/Makefile
index c172135ec..7e7d52a40 100644
--- a/apps/Makefile
+++ b/apps/Makefile
@@ -102,15 +102,9 @@ endif
# Create the list of available applications (INSTALLED_APPS)
-ifeq ($(CONFIG_WINDOWS_NATIVE),y)
-define ADD_BUILTIN
- INSTALLED_APPS += $(if $(wildcard $1\Makefile),$1,)
-endef
-else
define ADD_BUILTIN
- INSTALLED_APPS += $(if $(wildcard $1/Makefile),$1,)
+ INSTALLED_APPS += $(if $(wildcard $1$(DELIM)Makefile),$1,)
endef
-endif
$(foreach BUILTIN, $(CONFIGURED_APPS), $(eval $(call ADD_BUILTIN,$(BUILTIN))))
@@ -119,7 +113,8 @@ $(foreach BUILTIN, $(CONFIGURED_APPS), $(eval $(call ADD_BUILTIN,$(BUILTIN))))
# provided by the user (possibly as a symbolic link) to add libraries and
# applications to the standard build from the repository.
-EXTERNAL_DIR := $(dir $(wildcard external/Makefile))
+EXTERNAL_DIR := $(dir $(wildcard external$(DELIM)Makefile))
+
INSTALLED_APPS += $(EXTERNAL_DIR)
SUBDIRS += $(EXTERNAL_DIR)
diff --git a/apps/examples/elf/tests/errno/Makefile b/apps/examples/elf/tests/errno/Makefile
index 92cff9e12..09d469f9b 100644
--- a/apps/examples/elf/tests/errno/Makefile
+++ b/apps/examples/elf/tests/errno/Makefile
@@ -55,5 +55,6 @@ clean:
@rm -f $(BIN) *.o *~ .*.swp core
install:
- @install -D $(BIN) $(ROMFS_DIR)/$(BIN)
+ @mkdir -p $(ROMFS_DIR)
+ @install $(BIN) $(ROMFS_DIR)/$(BIN)
diff --git a/apps/examples/elf/tests/hello/Makefile b/apps/examples/elf/tests/hello/Makefile
index e1c396c3c..88770276b 100644
--- a/apps/examples/elf/tests/hello/Makefile
+++ b/apps/examples/elf/tests/hello/Makefile
@@ -55,4 +55,5 @@ clean:
@rm -f $(BIN) *.o *~ .*.swp core
install:
- @install -D $(BIN) $(ROMFS_DIR)/$(BIN)
+ @mkdir -p $(ROMFS_DIR)
+ @install $(BIN) $(ROMFS_DIR)/$(BIN)
diff --git a/apps/examples/elf/tests/helloxx/Makefile b/apps/examples/elf/tests/helloxx/Makefile
index d115fbeaf..45b4b8868 100644
--- a/apps/examples/elf/tests/helloxx/Makefile
+++ b/apps/examples/elf/tests/helloxx/Makefile
@@ -109,12 +109,13 @@ clean:
@rm -f $(ALL_BIN) *.o *~ .*.swp core
install: $(ALL_BIN)
- @install -D $(BIN1) $(ROMFS_DIR)/$(BIN1)
- @install -D $(BIN2) $(ROMFS_DIR)/$(BIN2)
+ @mkdir -p $(ROMFS_DIR)
+ @install $(BIN1) $(ROMFS_DIR)/$(BIN1)
+ @install $(BIN2) $(ROMFS_DIR)/$(BIN2)
ifeq ($(CONFIG_BINFMT_CONSTRUCTORS),y)
- @install -D $(BIN3) $(ROMFS_DIR)/$(BIN3)
+ @install $(BIN3) $(ROMFS_DIR)/$(BIN3)
endif
-# @install -D $(BIN4) $(ROMFS_DIR)/$(BIN4)
+# @install $(BIN4) $(ROMFS_DIR)/$(BIN4)
diff --git a/apps/examples/elf/tests/longjmp/Makefile b/apps/examples/elf/tests/longjmp/Makefile
index 0cafe05e3..04da6ee81 100644
--- a/apps/examples/elf/tests/longjmp/Makefile
+++ b/apps/examples/elf/tests/longjmp/Makefile
@@ -55,4 +55,5 @@ clean:
@rm -f $(BIN) *.o *~ .*.swp core
install:
- @install -D $(BIN) $(ROMFS_DIR)/$(BIN)
+ @mkdir -p $(ROMFS_DIR)
+ @install $(BIN) $(ROMFS_DIR)/$(BIN)
diff --git a/apps/examples/elf/tests/mutex/Makefile b/apps/examples/elf/tests/mutex/Makefile
index efce216d8..756ada2c0 100644
--- a/apps/examples/elf/tests/mutex/Makefile
+++ b/apps/examples/elf/tests/mutex/Makefile
@@ -55,4 +55,5 @@ clean:
@rm -f $(BIN) *.o *~ .*.swp core
install:
- @install -D $(BIN) $(ROMFS_DIR)/$(BIN)
+ @mkdir -p $(ROMFS_DIR)
+ @install $(BIN) $(ROMFS_DIR)/$(BIN)
diff --git a/apps/examples/elf/tests/pthread/Makefile b/apps/examples/elf/tests/pthread/Makefile
index 134fabe01..4bea4515b 100644
--- a/apps/examples/elf/tests/pthread/Makefile
+++ b/apps/examples/elf/tests/pthread/Makefile
@@ -55,4 +55,5 @@ clean:
@rm -f $(BIN) *.o *~ .*.swp core
install:
- @install -D $(BIN) $(ROMFS_DIR)/$(BIN)
+ @mkdir -p $(ROMFS_DIR)
+ @install $(BIN) $(ROMFS_DIR)/$(BIN)
diff --git a/apps/examples/elf/tests/signal/Makefile b/apps/examples/elf/tests/signal/Makefile
index 08710aeaa..9eaaf8609 100644
--- a/apps/examples/elf/tests/signal/Makefile
+++ b/apps/examples/elf/tests/signal/Makefile
@@ -55,4 +55,5 @@ clean:
@rm -f $(BIN) *.o *~ .*.swp core
install:
- @install -D $(BIN) $(ROMFS_DIR)/$(BIN)
+ @mkdir -p $(ROMFS_DIR)
+ @install $(BIN) $(ROMFS_DIR)/$(BIN)
diff --git a/apps/examples/elf/tests/struct/Makefile b/apps/examples/elf/tests/struct/Makefile
index 3aa0e4a57..2ddd80b89 100644
--- a/apps/examples/elf/tests/struct/Makefile
+++ b/apps/examples/elf/tests/struct/Makefile
@@ -56,4 +56,5 @@ clean:
@rm -f $(BIN) *.o *~ .*.swp core
install:
- @install -D $(BIN) $(ROMFS_DIR)/$(BIN)
+ @mkdir -p $(ROMFS_DIR)
+ @install $(BIN) $(ROMFS_DIR)/$(BIN)
diff --git a/apps/examples/elf/tests/task/Makefile b/apps/examples/elf/tests/task/Makefile
index 63a2eb211..accac987f 100644
--- a/apps/examples/elf/tests/task/Makefile
+++ b/apps/examples/elf/tests/task/Makefile
@@ -55,4 +55,5 @@ clean:
@rm -f $(BIN) *.o *~ .*.swp core
install:
- @install -D $(BIN) $(ROMFS_DIR)/$(BIN)
+ @mkdir -p $(ROMFS_DIR)
+ @install $(BIN) $(ROMFS_DIR)/$(BIN)