aboutsummaryrefslogtreecommitdiff
path: root/apps/examples/buttons
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
commit3fe53af6be14a28174eec48b5740dbbe7c1f818a (patch)
treeadbf30bfdbb86648a4b292c16abd5c71a8548ba1 /apps/examples/buttons
parent5cfde412bb9cbd55db2854939d25c2d8e053aaa5 (diff)
downloadpx4-firmware-3fe53af6be14a28174eec48b5740dbbe7c1f818a.tar.gz
px4-firmware-3fe53af6be14a28174eec48b5740dbbe7c1f818a.tar.bz2
px4-firmware-3fe53af6be14a28174eec48b5740dbbe7c1f818a.zip
Remove .context kludge from apps/ directory
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5455 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/examples/buttons')
-rw-r--r--apps/examples/buttons/Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/apps/examples/buttons/Makefile b/apps/examples/buttons/Makefile
index 77c1cd67d..ac1f2f05a 100644
--- a/apps/examples/buttons/Makefile
+++ b/apps/examples/buttons/Makefile
@@ -83,13 +83,14 @@ $(COBJS): %$(OBJEXT): %.c
$(call ARCHIVE, $(BIN), $(OBJS))
@touch .built
-.context:
ifeq ($(CONFIG_NSH_BUILTIN_APPS),y)
+$(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(TOPDIR)$(DELIM).config Makefile
$(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main)
- @touch $@
-endif
-context: .context
+context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat
+else
+context:
+endif
.depend: Makefile $(SRCS)
@$(MKDEP) $(ROOTDEPPATH) "$(CC)" -- $(CFLAGS) -- $(SRCS) >Make.dep