summaryrefslogtreecommitdiff
path: root/apps/Make.defs
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-12-23 22:17:09 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-12-23 22:17:09 +0000
commit0cafa6176d2a38082056e3aa2193590a7eea808b (patch)
treeadbf30bfdbb86648a4b292c16abd5c71a8548ba1 /apps/Make.defs
parent11e331a9ca6df348e97e57948fed9d23b9bba2ef (diff)
downloadnuttx-0cafa6176d2a38082056e3aa2193590a7eea808b.tar.gz
nuttx-0cafa6176d2a38082056e3aa2193590a7eea808b.tar.bz2
nuttx-0cafa6176d2a38082056e3aa2193590a7eea808b.zip
Remove .context kludge from apps/ directory
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5455 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/Make.defs')
-rw-r--r--apps/Make.defs9
1 files changed, 6 insertions, 3 deletions
diff --git a/apps/Make.defs b/apps/Make.defs
index 12b351e7f..217137a29 100644
--- a/apps/Make.defs
+++ b/apps/Make.defs
@@ -34,8 +34,11 @@
#
############################################################################
+BUILTIN_REGISTRY = $(APPDIR)$(DELIM)builtin$(DELIM)registry
+
define REGISTER
- @echo "Register: $1"
- @echo "{ \"$1\", $2, $3, $4 }," >> "$(APPDIR)/builtin/builtin_list.h"
- @echo "EXTERN int $4(int argc, char *argv[]);" >> "$(APPDIR)/builtin/builtin_proto.h"
+ $(Q) echo "Register: $1"
+ $(Q) echo "{ \"$1\", $2, $3, $4 }," > "$(BUILTIN_REGISTRY)$(DELIM)$4.bdat"
+ $(Q) echo "int $4(int argc, char *argv[]);" > "$(BUILTIN_REGISTRY)$(DELIM)$4.pdat"
+ $(Q) touch "$(BUILTIN_REGISTRY)$(DELIM).updated"
endef