summaryrefslogtreecommitdiff
path: root/apps/examples/json/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'apps/examples/json/Makefile')
-rw-r--r--apps/examples/json/Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/apps/examples/json/Makefile b/apps/examples/json/Makefile
index c3e9203f9..1e42757b8 100644
--- a/apps/examples/json/Makefile
+++ b/apps/examples/json/Makefile
@@ -81,13 +81,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