From d6bcd1a93a632ae1ece6d5db07d52ed682f3cc34 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sat, 6 Sep 2014 08:00:47 -0600 Subject: [PATCH] Add an install target to all makefiles. For the import build, the top-level Makefile now does two passes: (1) builds libapp.a, then (2) installs the programs (not yet finished) --- Makefile | 70 +++++++------------ builtin/Makefile | 2 + builtin/registry/Makefile | 2 + examples/Makefile | 2 + examples/adc/Makefile | 4 ++ examples/buttons/Makefile | 4 ++ examples/can/Makefile | 4 ++ examples/cc3000/Makefile | 4 ++ examples/configdata/Makefile | 2 + examples/cpuhog/Makefile | 4 ++ examples/cxxtest/Makefile | 4 ++ examples/dhcpd/Makefile | 4 ++ examples/discover/Makefile | 4 ++ examples/elf/Makefile | 2 + examples/elf/tests/Makefile | 3 +- examples/elf/tests/errno/Makefile | 1 + examples/elf/tests/hello/Makefile | 1 + examples/elf/tests/helloxx/Makefile | 3 +- examples/elf/tests/longjmp/Makefile | 1 + examples/elf/tests/mutex/Makefile | 1 + examples/elf/tests/pthread/Makefile | 1 + examples/elf/tests/signal/Makefile | 1 + examples/elf/tests/struct/Makefile | 1 + examples/elf/tests/task/Makefile | 1 + examples/flash_test/Makefile | 4 ++ examples/ftpc/Makefile | 4 ++ examples/ftpd/Makefile | 4 ++ examples/hello/Makefile | 4 ++ examples/helloxx/Makefile | 4 ++ examples/hidkbd/Makefile | 2 + examples/i2schar/Makefile | 4 ++ examples/igmp/Makefile | 4 ++ examples/json/Makefile | 4 ++ examples/keypadtest/Makefile | 4 ++ examples/lcdrw/Makefile | 4 ++ examples/mm/Makefile | 2 + examples/modbus/Makefile | 4 ++ examples/mount/Makefile | 2 + examples/mtdpart/Makefile | 2 + examples/netpkt/Makefile | 4 ++ examples/nettest/Makefile | 4 ++ examples/nrf24l01_term/Makefile | 2 + examples/nsh/Makefile | 2 + examples/null/Makefile | 2 + examples/nx/Makefile | 4 ++ examples/nxconsole/Makefile | 2 + examples/nxffs/Makefile | 2 + examples/nxflat/Makefile | 2 + examples/nxflat/tests/Makefile | 3 +- examples/nxflat/tests/errno/Makefile | 1 + examples/nxflat/tests/hello++/Makefile | 3 +- examples/nxflat/tests/hello/Makefile | 1 + examples/nxflat/tests/longjmp/Makefile | 1 + examples/nxflat/tests/mutex/Makefile | 1 + examples/nxflat/tests/pthread/Makefile | 1 + examples/nxflat/tests/signal/Makefile | 1 + examples/nxflat/tests/struct/Makefile | 1 + examples/nxflat/tests/task/Makefile | 1 + examples/nxhello/Makefile | 4 ++ examples/nximage/Makefile | 4 ++ examples/nxlines/Makefile | 4 ++ examples/nxtext/Makefile | 4 ++ examples/ostest/Makefile | 4 ++ examples/pashello/Makefile | 2 + examples/pipe/Makefile | 2 + examples/poll/Makefile | 2 + examples/posix_spawn/Makefile | 2 + .../posix_spawn/filesystem/hello/Makefile | 1 + .../posix_spawn/filesystem/redirect/Makefile | 1 + examples/pwm/Makefile | 4 ++ examples/qencoder/Makefile | 4 ++ examples/random/Makefile | 4 ++ examples/relays/Makefile | 4 ++ examples/rgmp/Makefile | 2 + examples/romfs/Makefile | 2 + examples/sendmail/Makefile | 2 + examples/serialblaster/Makefile | 4 ++ examples/serialrx/Makefile | 4 ++ examples/serloop/Makefile | 2 + examples/slcd/Makefile | 4 ++ examples/smart/Makefile | 2 + examples/smart_test/Makefile | 4 ++ examples/tcpecho/Makefile | 4 ++ examples/telnetd/Makefile | 4 ++ examples/thttpd/Makefile | 2 + examples/thttpd/content/Makefile | 3 +- examples/thttpd/content/hello/Makefile | 1 + examples/thttpd/content/netstat/Makefile | 1 + examples/thttpd/content/tasks/Makefile | 1 + examples/tiff/Makefile | 4 ++ examples/touchscreen/Makefile | 4 ++ examples/udp/Makefile | 2 + examples/usbserial/Makefile | 2 + examples/usbterm/Makefile | 4 ++ examples/watchdog/Makefile | 4 ++ examples/webserver/Makefile | 2 + examples/wget/Makefile | 2 + examples/wgetjson/Makefile | 4 ++ examples/xmlrpc/Makefile | 4 ++ graphics/Makefile | 2 + graphics/screenshot/Makefile | 4 ++ graphics/tiff/Makefile | 2 + import/Makefile | 2 + interpreters/Makefile | 2 + interpreters/ficl/Makefile | 2 + modbus/Makefile | 2 + netutils/Makefile | 2 + netutils/codecs/Makefile | 2 + netutils/dhcpc/Makefile | 2 + netutils/dhcpd/Makefile | 2 + netutils/discover/Makefile | 2 + netutils/dnsclient/Makefile | 2 + netutils/ftpc/Makefile | 2 + netutils/ftpd/Makefile | 2 + netutils/json/Makefile | 2 + netutils/netlib/Makefile | 2 + netutils/ntpclient/Makefile | 2 + netutils/smtp/Makefile | 2 + netutils/telnetd/Makefile | 2 + netutils/tftpc/Makefile | 2 + netutils/thttpd/Makefile | 2 + netutils/webclient/Makefile | 2 + netutils/webserver/Makefile | 2 + netutils/xmlrpc/Makefile | 2 + nshlib/Makefile | 2 + platform/Makefile | 2 + system/Makefile | 2 + system/cdcacm/Makefile | 4 ++ system/cle/Makefile | 2 + system/composite/Makefile | 4 ++ system/flash_eraseall/Makefile | 4 ++ system/free/Makefile | 4 ++ system/hex2bin/Makefile | 2 + system/i2c/Makefile | 4 ++ system/inifile/Makefile | 2 + system/install/Makefile | 4 ++ system/mdio/Makefile | 4 ++ system/nxplayer/Makefile | 6 ++ system/poweroff/Makefile | 4 ++ system/prun/Makefile | 6 ++ system/ramtest/Makefile | 4 ++ system/ramtron/Makefile | 4 ++ system/readline/Makefile | 2 + system/sdcard/Makefile | 4 ++ system/stackmonitor/Makefile | 4 ++ system/sudoku/Makefile | 4 ++ system/sysinfo/Makefile | 4 ++ system/usbmonitor/Makefile | 4 ++ system/usbmsc/Makefile | 4 ++ system/vi/Makefile | 4 ++ system/zmodem/Makefile | 4 ++ 151 files changed, 437 insertions(+), 49 deletions(-) diff --git a/Makefile b/Makefile index 0ad9596d6..3ed1f3f87 100644 --- a/Makefile +++ b/Makefile @@ -110,72 +110,53 @@ BIN = libapps$(LIBEXT) # Build targets all: $(BIN) -.PHONY: $(INSTALLED_APPS) import context depend clean distclean +.PHONY: import install context .depdirs depend clean distclean + +define SDIR_template +$(1)_$(2): + $(Q) $(MAKE) -C $(1) $(2) TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)" +endef $(INSTALLED_APPS): $(Q) $(MAKE) -C $@ TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)" -$(BIN): $(INSTALLED_APPS) +$(foreach SDIR, $(INSTALLED_APPS), $(eval $(call SDIR_template,$(SDIR),all))) +$(foreach SDIR, $(INSTALLED_APPS), $(eval $(call SDIR_template,$(SDIR),install))) +$(foreach SDIR, $(INSTALLED_APPS), $(eval $(call SDIR_template,$(SDIR),context))) +$(foreach SDIR, $(INSTALLED_APPS), $(eval $(call SDIR_template,$(SDIR),depend))) +$(foreach SDIR, $(INSTALLED_APPS), $(eval $(call SDIR_template,$(SDIR),clean))) +$(foreach SDIR, $(INSTALLED_APPS), $(eval $(call SDIR_template,$(SDIR),distclean))) + +$(BIN): $(foreach SDIR, $(INSTALLED_APPS), $(SDIR)_all) + +install: $(foreach SDIR, $(INSTALLED_APPS), $(SDIR)_install) + +.import: $(BIN) install import: - $(Q) $(MAKE) TOPDIR="$(APPDIR)/import" + $(Q) $(MAKE) .import TOPDIR="$(APPDIR)/import" -context: -ifeq ($(CONFIG_WINDOWS_NATIVE),y) - $(Q) for %%G in ($(INSTALLED_APPS)) do ( \ - $(MAKE) -C %%G TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)" context \ - ) -else - $(Q) for dir in $(INSTALLED_APPS) ; do \ - $(MAKE) -C $$dir TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)" context ; \ - done -endif +context: $(foreach SDIR, $(INSTALLED_APPS), $(SDIR)_context) -.depend: context Makefile $(SRCS) -ifeq ($(CONFIG_WINDOWS_NATIVE),y) - $(Q) for %%G in ($(INSTALLED_APPS)) do ( \ - if exist %%G\.depend del /f /q %%G\.depend \ - $(MAKE) -C %%G TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)" depend \ - ) -else - $(Q) for dir in $(INSTALLED_APPS) ; do \ - rm -f $$dir/.depend ; \ - $(MAKE) -C $$dir TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)" depend ; \ - done -endif +.depdirs: $(foreach SDIR, $(INSTALLED_APPS), $(SDIR)_depend) + +.depend: context Makefile .depdirs $(Q) touch $@ depend: .depend -clean: -ifeq ($(CONFIG_WINDOWS_NATIVE),y) - $(Q) for %%G in ($(SUBDIRS)) do ( \ - $(MAKE) -C %%G clean TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)" \ - ) -else - $(Q) for dir in $(SUBDIRS) ; do \ - $(MAKE) -C $$dir clean TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)"; \ - done -endif +clean: $(foreach SDIR, $(INSTALLED_APPS), $(SDIR)_clean) $(call DELFILE, $(BIN)) $(call CLEAN) -distclean: +distclean: $(foreach SDIR, $(INSTALLED_APPS), $(SDIR)_distclean) ifeq ($(CONFIG_WINDOWS_NATIVE),y) - $(Q) for %%G in ($(SUBDIRS)) do ( \ - $(MAKE) -C %%G distclean TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)" \ - ) - $(call DELFILE, .depend) $(Q) ( if exist external ( \ echo ********************************************************" \ echo * The external directory/link must be removed manually *" \ echo ********************************************************" \ ) else - $(Q) for dir in $(SUBDIRS) ; do \ - $(MAKE) -C $$dir distclean TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)"; \ - done - $(call DELFILE, .depend) $(Q) ( if [ -e external ]; then \ echo "********************************************************"; \ echo "* The external directory/link must be removed manually *"; \ @@ -183,5 +164,6 @@ else fi; \ ) endif + $(call DELFILE, .depend) diff --git a/builtin/Makefile b/builtin/Makefile index 9b64e7b17..df2fbb3db 100644 --- a/builtin/Makefile +++ b/builtin/Makefile @@ -106,6 +106,8 @@ endif $(call ARCHIVE, $(BIN), $(OBJS)) $(Q) touch .built +install: + context: $(Q) $(MAKE) -C registry context TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)" diff --git a/builtin/registry/Makefile b/builtin/registry/Makefile index 4ecd5da9f..255e55206 100644 --- a/builtin/registry/Makefile +++ b/builtin/registry/Makefile @@ -48,6 +48,8 @@ all: # This must run before any other context target +install: + context: .updated depend: diff --git a/examples/Makefile b/examples/Makefile index 48a328d4e..5511ef77c 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -77,6 +77,8 @@ $(foreach SDIR, $(SUBDIRS), $(eval $(call SDIR_template,$(SDIR),distclean))) nothing: +install: + context: $(foreach SDIR, $(CNTXTDIRS), $(SDIR)_context) depend: $(foreach SDIR, $(SUBDIRS), $(SDIR)_depend) diff --git a/examples/adc/Makefile b/examples/adc/Makefile index d786ea6dc..777b4829f 100644 --- a/examples/adc/Makefile +++ b/examples/adc/Makefile @@ -87,8 +87,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat else +install: + context: endif diff --git a/examples/buttons/Makefile b/examples/buttons/Makefile index b7e4965df..d3d7b935d 100644 --- a/examples/buttons/Makefile +++ b/examples/buttons/Makefile @@ -87,8 +87,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat else +install: + context: endif diff --git a/examples/can/Makefile b/examples/can/Makefile index 2abdd845b..5deadace1 100644 --- a/examples/can/Makefile +++ b/examples/can/Makefile @@ -87,8 +87,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat else +install: + context: endif diff --git a/examples/cc3000/Makefile b/examples/cc3000/Makefile index 9289fc697..2c06ae083 100644 --- a/examples/cc3000/Makefile +++ b/examples/cc3000/Makefile @@ -92,8 +92,12 @@ $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main) $(call REGISTER,$(APPNAME1),$(PRIORITY1),$(STACKSIZE1),$(APPNAME1)_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat else +install: + context: endif diff --git a/examples/configdata/Makefile b/examples/configdata/Makefile index cc989284a..4f1b474fe 100644 --- a/examples/configdata/Makefile +++ b/examples/configdata/Makefile @@ -77,6 +77,8 @@ $(COBJS): %$(OBJEXT): %.c $(call ARCHIVE, $(BIN), $(OBJS)) @touch .built +install: + context: .depend: Makefile $(SRCS) diff --git a/examples/cpuhog/Makefile b/examples/cpuhog/Makefile index f946d9877..d784e442c 100644 --- a/examples/cpuhog/Makefile +++ b/examples/cpuhog/Makefile @@ -90,8 +90,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat else +install: + context: endif diff --git a/examples/cxxtest/Makefile b/examples/cxxtest/Makefile index 833cf0cc7..966d6deb3 100644 --- a/examples/cxxtest/Makefile +++ b/examples/cxxtest/Makefile @@ -104,8 +104,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat else +install: + context: endif diff --git a/examples/dhcpd/Makefile b/examples/dhcpd/Makefile index 73058dcaa..62edc51e5 100644 --- a/examples/dhcpd/Makefile +++ b/examples/dhcpd/Makefile @@ -87,8 +87,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat else +install: + context: endif diff --git a/examples/discover/Makefile b/examples/discover/Makefile index a0fac4acf..373ee0769 100644 --- a/examples/discover/Makefile +++ b/examples/discover/Makefile @@ -88,8 +88,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat else +install: + context: endif diff --git a/examples/elf/Makefile b/examples/elf/Makefile index 1467bf008..afeab7a1b 100644 --- a/examples/elf/Makefile +++ b/examples/elf/Makefile @@ -86,6 +86,8 @@ really_build: $(OBJS) @$(MAKE) -C tests TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)" CROSSDEV=$(CROSSDEV) @$(MAKE) TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)" really_build +install: + context: # We can't make dependencies in this directory because the required diff --git a/examples/elf/tests/Makefile b/examples/elf/tests/Makefile index 17732c775..480a898b9 100644 --- a/examples/elf/tests/Makefile +++ b/examples/elf/tests/Makefile @@ -82,7 +82,8 @@ build: $(foreach DIR, $(BUILD_SUBDIRS), $(DIR)_build) # Install each program in the romfs directory -install: $(foreach DIR, $(BUILD_SUBDIRS), $(DIR)_install) +install: + $(foreach DIR, $(BUILD_SUBDIRS), $(DIR)_install) # Create the romfs directory diff --git a/examples/elf/tests/errno/Makefile b/examples/elf/tests/errno/Makefile index 89e3f2bfd..719468cd1 100644 --- a/examples/elf/tests/errno/Makefile +++ b/examples/elf/tests/errno/Makefile @@ -83,5 +83,6 @@ clean: $(call CLEAN) install: + $(Q) mkdir -p $(ROMFS_DIR) $(Q) install $(BIN) $(ROMFS_DIR)/$(BIN) diff --git a/examples/elf/tests/hello/Makefile b/examples/elf/tests/hello/Makefile index f89759a66..32206be58 100644 --- a/examples/elf/tests/hello/Makefile +++ b/examples/elf/tests/hello/Makefile @@ -83,5 +83,6 @@ clean: $(call CLEAN) install: + $(Q) mkdir -p $(ROMFS_DIR) $(Q) install $(BIN) $(ROMFS_DIR)/$(BIN) diff --git a/examples/elf/tests/helloxx/Makefile b/examples/elf/tests/helloxx/Makefile index cd153bd52..a85485b40 100644 --- a/examples/elf/tests/helloxx/Makefile +++ b/examples/elf/tests/helloxx/Makefile @@ -139,7 +139,8 @@ clean: $(call DELFILE, $(BIN4)) $(call CLEAN) -install: $(ALL_BIN) +install: + $(ALL_BIN) $(Q) mkdir -p $(ROMFS_DIR) $(Q) install $(BIN1) $(ROMFS_DIR)/$(BIN1) $(Q) install $(BIN2) $(ROMFS_DIR)/$(BIN2) diff --git a/examples/elf/tests/longjmp/Makefile b/examples/elf/tests/longjmp/Makefile index 26fa393bd..4c9f89aad 100644 --- a/examples/elf/tests/longjmp/Makefile +++ b/examples/elf/tests/longjmp/Makefile @@ -83,5 +83,6 @@ clean: $(call CLEAN) install: + $(Q) mkdir -p $(ROMFS_DIR) $(Q) install $(BIN) $(ROMFS_DIR)/$(BIN) diff --git a/examples/elf/tests/mutex/Makefile b/examples/elf/tests/mutex/Makefile index f8ce4f613..93be0d29a 100644 --- a/examples/elf/tests/mutex/Makefile +++ b/examples/elf/tests/mutex/Makefile @@ -83,5 +83,6 @@ clean: $(call CLEAN) install: + $(Q) mkdir -p $(ROMFS_DIR) $(Q) install $(BIN) $(ROMFS_DIR)/$(BIN) diff --git a/examples/elf/tests/pthread/Makefile b/examples/elf/tests/pthread/Makefile index 9d4ce496b..23d31d486 100644 --- a/examples/elf/tests/pthread/Makefile +++ b/examples/elf/tests/pthread/Makefile @@ -83,5 +83,6 @@ clean: $(call CLEAN) install: + $(Q) mkdir -p $(ROMFS_DIR) $(Q) install $(BIN) $(ROMFS_DIR)/$(BIN) diff --git a/examples/elf/tests/signal/Makefile b/examples/elf/tests/signal/Makefile index c442ae9c6..6aeb26235 100644 --- a/examples/elf/tests/signal/Makefile +++ b/examples/elf/tests/signal/Makefile @@ -83,5 +83,6 @@ clean: $(call CLEAN) install: + $(Q) mkdir -p $(ROMFS_DIR) $(Q) install $(BIN) $(ROMFS_DIR)/$(BIN) diff --git a/examples/elf/tests/struct/Makefile b/examples/elf/tests/struct/Makefile index 8fe7cf710..0ccfac249 100644 --- a/examples/elf/tests/struct/Makefile +++ b/examples/elf/tests/struct/Makefile @@ -84,5 +84,6 @@ clean: $(call CLEAN) install: + $(Q) mkdir -p $(ROMFS_DIR) $(Q) install $(BIN) $(ROMFS_DIR)/$(BIN) diff --git a/examples/elf/tests/task/Makefile b/examples/elf/tests/task/Makefile index 572d1072e..8cda9e0cc 100644 --- a/examples/elf/tests/task/Makefile +++ b/examples/elf/tests/task/Makefile @@ -83,5 +83,6 @@ clean: $(call CLEAN) install: + $(Q) mkdir -p $(ROMFS_DIR) $(Q) install $(BIN) $(ROMFS_DIR)/$(BIN) diff --git a/examples/flash_test/Makefile b/examples/flash_test/Makefile index b92a7aaa9..ff5fdb910 100644 --- a/examples/flash_test/Makefile +++ b/examples/flash_test/Makefile @@ -92,8 +92,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat else +install: + context: endif diff --git a/examples/ftpc/Makefile b/examples/ftpc/Makefile index 3f1f79da7..7a7d0cd1c 100644 --- a/examples/ftpc/Makefile +++ b/examples/ftpc/Makefile @@ -87,8 +87,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat else +install: + context: endif diff --git a/examples/ftpd/Makefile b/examples/ftpd/Makefile index d1c4eb6b6..57f095bbf 100644 --- a/examples/ftpd/Makefile +++ b/examples/ftpd/Makefile @@ -85,8 +85,12 @@ $(BUILTIN_REGISTRY)$(DELIM)ftpd_start.bdat: $(DEPCONFIG) Makefile $(BUILTIN_REGISTRY)$(DELIM)ftpd_stop.bdat: $(DEPCONFIG) Makefile $(call REGISTER,ftpd_stop,SCHED_PRIORITY_DEFAULT,2048,ftpd_stop) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)ftpd_start.bdat $(BUILTIN_REGISTRY)$(DELIM)ftpd_stop.bdat else +install: + context: endif diff --git a/examples/hello/Makefile b/examples/hello/Makefile index 19692e4bc..09f956eee 100644 --- a/examples/hello/Makefile +++ b/examples/hello/Makefile @@ -87,8 +87,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat else +install: + context: endif diff --git a/examples/helloxx/Makefile b/examples/helloxx/Makefile index c83ad5a3d..1e350863e 100644 --- a/examples/helloxx/Makefile +++ b/examples/helloxx/Makefile @@ -104,8 +104,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat else +install: + context: endif diff --git a/examples/hidkbd/Makefile b/examples/hidkbd/Makefile index a9a7aa681..19ec6d840 100644 --- a/examples/hidkbd/Makefile +++ b/examples/hidkbd/Makefile @@ -77,6 +77,8 @@ $(COBJS): %$(OBJEXT): %.c $(call ARCHIVE, $(BIN), $(OBJS)) @touch .built +install: + context: .depend: Makefile $(SRCS) diff --git a/examples/i2schar/Makefile b/examples/i2schar/Makefile index 57eb190fc..27103238a 100644 --- a/examples/i2schar/Makefile +++ b/examples/i2schar/Makefile @@ -93,8 +93,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat else +install: + context: endif diff --git a/examples/igmp/Makefile b/examples/igmp/Makefile index 9128453ed..ad8cbfef2 100644 --- a/examples/igmp/Makefile +++ b/examples/igmp/Makefile @@ -85,8 +85,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat else +install: + context: endif diff --git a/examples/json/Makefile b/examples/json/Makefile index 96144f9ad..e53ba1c01 100644 --- a/examples/json/Makefile +++ b/examples/json/Makefile @@ -85,8 +85,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat else +install: + context: endif diff --git a/examples/keypadtest/Makefile b/examples/keypadtest/Makefile index e38e66a82..c630628bd 100644 --- a/examples/keypadtest/Makefile +++ b/examples/keypadtest/Makefile @@ -87,8 +87,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat else +install: + context: endif diff --git a/examples/lcdrw/Makefile b/examples/lcdrw/Makefile index 9a394632e..585ba2451 100644 --- a/examples/lcdrw/Makefile +++ b/examples/lcdrw/Makefile @@ -87,8 +87,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat else +install: + context: endif diff --git a/examples/mm/Makefile b/examples/mm/Makefile index d332e3845..55b06ea58 100644 --- a/examples/mm/Makefile +++ b/examples/mm/Makefile @@ -77,6 +77,8 @@ $(COBJS): %$(OBJEXT): %.c $(call ARCHIVE, $(BIN), $(OBJS)) @touch .built +install: + context: .depend: Makefile $(SRCS) diff --git a/examples/modbus/Makefile b/examples/modbus/Makefile index ed1e19fab..5a6697648 100644 --- a/examples/modbus/Makefile +++ b/examples/modbus/Makefile @@ -87,8 +87,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat else +install: + context: endif diff --git a/examples/mount/Makefile b/examples/mount/Makefile index 8ac82a6c3..52c4af1b9 100644 --- a/examples/mount/Makefile +++ b/examples/mount/Makefile @@ -77,6 +77,8 @@ $(COBJS): %$(OBJEXT): %.c $(call ARCHIVE, $(BIN), $(OBJS)) @touch .built +install: + context: .depend: Makefile $(SRCS) diff --git a/examples/mtdpart/Makefile b/examples/mtdpart/Makefile index c3d9b8afe..be431c46e 100755 --- a/examples/mtdpart/Makefile +++ b/examples/mtdpart/Makefile @@ -77,6 +77,8 @@ $(COBJS): %$(OBJEXT): %.c $(call ARCHIVE, $(BIN), $(OBJS)) @touch .built +install: + context: .depend: Makefile $(SRCS) diff --git a/examples/netpkt/Makefile b/examples/netpkt/Makefile index 503bd7e69..ba421332c 100644 --- a/examples/netpkt/Makefile +++ b/examples/netpkt/Makefile @@ -87,8 +87,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat else +install: + context: endif diff --git a/examples/nettest/Makefile b/examples/nettest/Makefile index f237669f5..a3f302c62 100644 --- a/examples/nettest/Makefile +++ b/examples/nettest/Makefile @@ -120,8 +120,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat else +install: + context: endif diff --git a/examples/nrf24l01_term/Makefile b/examples/nrf24l01_term/Makefile index 4274cc157..429e2bd34 100644 --- a/examples/nrf24l01_term/Makefile +++ b/examples/nrf24l01_term/Makefile @@ -87,6 +87,8 @@ $(COBJS): %$(OBJEXT): %.c $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat #else #context: diff --git a/examples/nsh/Makefile b/examples/nsh/Makefile index 028299183..554c5fdf5 100644 --- a/examples/nsh/Makefile +++ b/examples/nsh/Makefile @@ -77,6 +77,8 @@ $(COBJS): %$(OBJEXT): %.c $(call ARCHIVE, $(BIN), $(OBJS)) @touch .built +install: + context: .depend: Makefile $(SRCS) diff --git a/examples/null/Makefile b/examples/null/Makefile index daeb49c27..9d33cef3c 100644 --- a/examples/null/Makefile +++ b/examples/null/Makefile @@ -77,6 +77,8 @@ $(COBJS): %$(OBJEXT): %.c $(call ARCHIVE, $(BIN), $(OBJS)) @touch .built +install: + context: .depend: Makefile $(SRCS) diff --git a/examples/nx/Makefile b/examples/nx/Makefile index 17e6e8640..9bdd115c3 100644 --- a/examples/nx/Makefile +++ b/examples/nx/Makefile @@ -90,8 +90,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat else +install: + context: endif diff --git a/examples/nxconsole/Makefile b/examples/nxconsole/Makefile index 3e1892785..c78c7b48a 100644 --- a/examples/nxconsole/Makefile +++ b/examples/nxconsole/Makefile @@ -77,6 +77,8 @@ $(COBJS): %$(OBJEXT): %.c $(call ARCHIVE, $(BIN), $(OBJS)) @touch .built +install: + context: .depend: Makefile $(SRCS) diff --git a/examples/nxffs/Makefile b/examples/nxffs/Makefile index 6d9e4a3d8..81b1b30bf 100644 --- a/examples/nxffs/Makefile +++ b/examples/nxffs/Makefile @@ -77,6 +77,8 @@ $(COBJS): %$(OBJEXT): %.c $(call ARCHIVE, $(BIN), $(OBJS)) @touch .built +install: + context: .depend: Makefile $(SRCS) diff --git a/examples/nxflat/Makefile b/examples/nxflat/Makefile index a750c8e2c..1d46ad74d 100644 --- a/examples/nxflat/Makefile +++ b/examples/nxflat/Makefile @@ -80,6 +80,8 @@ headers: $(call ARCHIVE, $(BIN), $(OBJS)) @touch .built +install: + context: # We can't make dependencies in this directory because the required diff --git a/examples/nxflat/tests/Makefile b/examples/nxflat/tests/Makefile index 8a65d6494..e6af69f16 100644 --- a/examples/nxflat/tests/Makefile +++ b/examples/nxflat/tests/Makefile @@ -63,7 +63,8 @@ build: $(foreach DIR, $(SUBDIRS), $(DIR)_build) # Install each program in the romfs directory -install: $(foreach DIR, $(SUBDIRS), $(DIR)_install) +install: + $(foreach DIR, $(SUBDIRS), $(DIR)_install) # Create the romfs directory diff --git a/examples/nxflat/tests/errno/Makefile b/examples/nxflat/tests/errno/Makefile index d161a6496..38413d806 100644 --- a/examples/nxflat/tests/errno/Makefile +++ b/examples/nxflat/tests/errno/Makefile @@ -77,5 +77,6 @@ clean: $(call CLEAN) install: + $(Q) install -D $(BIN) $(ROMFS_DIR)/$(BIN) diff --git a/examples/nxflat/tests/hello++/Makefile b/examples/nxflat/tests/hello++/Makefile index fb8922a1b..3568730f1 100644 --- a/examples/nxflat/tests/hello++/Makefile +++ b/examples/nxflat/tests/hello++/Makefile @@ -175,7 +175,8 @@ clean: $(call DELFILE, *.r2) $(call CLEAN) -install: $(ALL_BIN) +install: + $(ALL_BIN) $(Q) install -D $(BIN1) $(ROMFS_DIR)/$(BIN1) $(Q) install -D $(BIN2) $(ROMFS_DIR)/$(BIN2) $(Q) install -D $(BIN3) $(ROMFS_DIR)/$(BIN3) diff --git a/examples/nxflat/tests/hello/Makefile b/examples/nxflat/tests/hello/Makefile index 2efa6dbca..c3ce689cd 100644 --- a/examples/nxflat/tests/hello/Makefile +++ b/examples/nxflat/tests/hello/Makefile @@ -77,5 +77,6 @@ clean: $(call CLEAN) install: + $(Q) install -D $(BIN) $(ROMFS_DIR)/$(BIN) diff --git a/examples/nxflat/tests/longjmp/Makefile b/examples/nxflat/tests/longjmp/Makefile index dbfd5fc91..902119057 100644 --- a/examples/nxflat/tests/longjmp/Makefile +++ b/examples/nxflat/tests/longjmp/Makefile @@ -77,5 +77,6 @@ clean: $(call CLEAN) install: + $(Q) install -D $(BIN) $(ROMFS_DIR)/$(BIN) diff --git a/examples/nxflat/tests/mutex/Makefile b/examples/nxflat/tests/mutex/Makefile index 526099819..05a9d0962 100644 --- a/examples/nxflat/tests/mutex/Makefile +++ b/examples/nxflat/tests/mutex/Makefile @@ -77,5 +77,6 @@ clean: $(call CLEAN) install: + $(Q) install -D $(BIN) $(ROMFS_DIR)/$(BIN) diff --git a/examples/nxflat/tests/pthread/Makefile b/examples/nxflat/tests/pthread/Makefile index e16a8f623..4a583ea46 100644 --- a/examples/nxflat/tests/pthread/Makefile +++ b/examples/nxflat/tests/pthread/Makefile @@ -78,5 +78,6 @@ clean: $(call CLEAN) install: + $(Q) install -D $(BIN) $(ROMFS_DIR)/$(BIN) diff --git a/examples/nxflat/tests/signal/Makefile b/examples/nxflat/tests/signal/Makefile index 43e4742b5..65fafc8bc 100644 --- a/examples/nxflat/tests/signal/Makefile +++ b/examples/nxflat/tests/signal/Makefile @@ -77,5 +77,6 @@ clean: $(call CLEAN) install: + $(Q) install -D $(BIN) $(ROMFS_DIR)/$(BIN) diff --git a/examples/nxflat/tests/struct/Makefile b/examples/nxflat/tests/struct/Makefile index bee07d1e5..b1767d0e9 100644 --- a/examples/nxflat/tests/struct/Makefile +++ b/examples/nxflat/tests/struct/Makefile @@ -79,5 +79,6 @@ clean: $(call CLEAN) install: + $(Q) install -D $(BIN) $(ROMFS_DIR)/$(BIN) diff --git a/examples/nxflat/tests/task/Makefile b/examples/nxflat/tests/task/Makefile index afd4754b6..531d62143 100644 --- a/examples/nxflat/tests/task/Makefile +++ b/examples/nxflat/tests/task/Makefile @@ -77,6 +77,7 @@ clean: $(call CLEAN) install: + $(Q) install -D $(BIN) $(ROMFS_DIR)/$(BIN) diff --git a/examples/nxhello/Makefile b/examples/nxhello/Makefile index 1aa1f5370..1292706dd 100644 --- a/examples/nxhello/Makefile +++ b/examples/nxhello/Makefile @@ -87,8 +87,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat else +install: + context: endif diff --git a/examples/nximage/Makefile b/examples/nximage/Makefile index afaf6eb9d..f7fa52de1 100644 --- a/examples/nximage/Makefile +++ b/examples/nximage/Makefile @@ -87,8 +87,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat else +install: + context: endif diff --git a/examples/nxlines/Makefile b/examples/nxlines/Makefile index fbd61ed44..5bd195aed 100644 --- a/examples/nxlines/Makefile +++ b/examples/nxlines/Makefile @@ -87,8 +87,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat else +install: + context: endif diff --git a/examples/nxtext/Makefile b/examples/nxtext/Makefile index 4091c577b..010a33bd5 100644 --- a/examples/nxtext/Makefile +++ b/examples/nxtext/Makefile @@ -91,8 +91,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat else +install: + context: endif diff --git a/examples/ostest/Makefile b/examples/ostest/Makefile index 71b08a942..44aeb160a 100644 --- a/examples/ostest/Makefile +++ b/examples/ostest/Makefile @@ -136,8 +136,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat else +install: + context: endif diff --git a/examples/pashello/Makefile b/examples/pashello/Makefile index d5c482374..0473e3d64 100644 --- a/examples/pashello/Makefile +++ b/examples/pashello/Makefile @@ -85,6 +85,8 @@ $(COBJS): %$(OBJEXT): %.c $(call ARCHIVE, $(BIN), $(OBJS)) @touch .built +install: + context: .depend: Makefile $(SRCS) diff --git a/examples/pipe/Makefile b/examples/pipe/Makefile index 3efa943b3..4f6e233e0 100644 --- a/examples/pipe/Makefile +++ b/examples/pipe/Makefile @@ -77,6 +77,8 @@ $(COBJS): %$(OBJEXT): %.c $(call ARCHIVE, $(BIN), $(OBJS)) @touch .built +install: + context: .depend: Makefile $(SRCS) diff --git a/examples/poll/Makefile b/examples/poll/Makefile index 9431398f8..e7cd88307 100644 --- a/examples/poll/Makefile +++ b/examples/poll/Makefile @@ -77,6 +77,8 @@ $(COBJS): %$(OBJEXT): %.c $(call ARCHIVE, $(BIN), $(OBJS)) @touch .built +install: + context: .depend: Makefile $(SRCS) diff --git a/examples/posix_spawn/Makefile b/examples/posix_spawn/Makefile index 77b6383ed..8ef9e81d7 100644 --- a/examples/posix_spawn/Makefile +++ b/examples/posix_spawn/Makefile @@ -85,6 +85,8 @@ build: @$(MAKE) -C filesystem TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)" CROSSDEV=$(CROSSDEV) @$(MAKE) TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)" build_lib +install: + context: # We can't make dependencies in this directory because the required diff --git a/examples/posix_spawn/filesystem/hello/Makefile b/examples/posix_spawn/filesystem/hello/Makefile index dbb52d760..4097c6f86 100644 --- a/examples/posix_spawn/filesystem/hello/Makefile +++ b/examples/posix_spawn/filesystem/hello/Makefile @@ -56,5 +56,6 @@ clean: $(call CLEAN) install: + $(Q) mkdir -p $(ROMFS_DIR) $(Q) install $(BIN) $(ROMFS_DIR)/$(BIN) diff --git a/examples/posix_spawn/filesystem/redirect/Makefile b/examples/posix_spawn/filesystem/redirect/Makefile index 5d6d499e1..c6259d819 100644 --- a/examples/posix_spawn/filesystem/redirect/Makefile +++ b/examples/posix_spawn/filesystem/redirect/Makefile @@ -56,5 +56,6 @@ clean: $(call CLEAN) install: + $(Q) mkdir -p $(ROMFS_DIR) $(Q) install -m 0755 $(BIN) $(ROMFS_DIR)/$(BIN) diff --git a/examples/pwm/Makefile b/examples/pwm/Makefile index d51bbf5db..b26d3f0b4 100644 --- a/examples/pwm/Makefile +++ b/examples/pwm/Makefile @@ -87,8 +87,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat else +install: + context: endif diff --git a/examples/qencoder/Makefile b/examples/qencoder/Makefile index 18a3bb925..fb189c054 100644 --- a/examples/qencoder/Makefile +++ b/examples/qencoder/Makefile @@ -87,8 +87,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat else +install: + context: endif diff --git a/examples/random/Makefile b/examples/random/Makefile index 7872f6a3d..f6f176006 100644 --- a/examples/random/Makefile +++ b/examples/random/Makefile @@ -85,8 +85,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat else +install: + context: endif diff --git a/examples/relays/Makefile b/examples/relays/Makefile index e5afd6fbf..d7842d9ef 100644 --- a/examples/relays/Makefile +++ b/examples/relays/Makefile @@ -87,8 +87,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat else +install: + context: endif diff --git a/examples/rgmp/Makefile b/examples/rgmp/Makefile index 049ad02a0..df9e333ae 100644 --- a/examples/rgmp/Makefile +++ b/examples/rgmp/Makefile @@ -77,6 +77,8 @@ $(COBJS): %$(OBJEXT): %.c $(call ARCHIVE, $(BIN), $(OBJS)) @touch .built +install: + context: .depend: Makefile $(SRCS) diff --git a/examples/romfs/Makefile b/examples/romfs/Makefile index d3c8e79cc..48145a52b 100644 --- a/examples/romfs/Makefile +++ b/examples/romfs/Makefile @@ -93,6 +93,8 @@ romfs_testdir.h : testdir.img $(call ARCHIVE, $(BIN), $(OBJS)) @touch .built +install: + context: .depend: Makefile $(SRCS) diff --git a/examples/sendmail/Makefile b/examples/sendmail/Makefile index 57f4e4615..3a19d879b 100644 --- a/examples/sendmail/Makefile +++ b/examples/sendmail/Makefile @@ -77,6 +77,8 @@ $(COBJS): %$(OBJEXT): %.c $(call ARCHIVE, $(BIN), $(OBJS)) @touch .built +install: + context: .depend: Makefile $(SRCS) diff --git a/examples/serialblaster/Makefile b/examples/serialblaster/Makefile index 3205ddbc8..0dd13071e 100644 --- a/examples/serialblaster/Makefile +++ b/examples/serialblaster/Makefile @@ -90,8 +90,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat else +install: + context: endif diff --git a/examples/serialrx/Makefile b/examples/serialrx/Makefile index f184f3e2e..e93079462 100644 --- a/examples/serialrx/Makefile +++ b/examples/serialrx/Makefile @@ -90,8 +90,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat else +install: + context: endif diff --git a/examples/serloop/Makefile b/examples/serloop/Makefile index 20f348269..6a6db3e1f 100644 --- a/examples/serloop/Makefile +++ b/examples/serloop/Makefile @@ -77,6 +77,8 @@ $(COBJS): %$(OBJEXT): %.c $(call ARCHIVE, $(BIN), $(OBJS)) @touch .built +install: + context: .depend: Makefile $(SRCS) diff --git a/examples/slcd/Makefile b/examples/slcd/Makefile index 54252879f..823fb1d33 100644 --- a/examples/slcd/Makefile +++ b/examples/slcd/Makefile @@ -87,8 +87,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat else +install: + context: endif diff --git a/examples/smart/Makefile b/examples/smart/Makefile index d0a5f738a..e754b1400 100644 --- a/examples/smart/Makefile +++ b/examples/smart/Makefile @@ -77,6 +77,8 @@ $(COBJS): %$(OBJEXT): %.c $(call ARCHIVE, $(BIN), $(OBJS)) @touch .built +install: + context: .depend: Makefile $(SRCS) diff --git a/examples/smart_test/Makefile b/examples/smart_test/Makefile index fb6100464..dd1ac3e71 100644 --- a/examples/smart_test/Makefile +++ b/examples/smart_test/Makefile @@ -92,8 +92,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat else +install: + context: endif diff --git a/examples/tcpecho/Makefile b/examples/tcpecho/Makefile index 7eb59120d..42e7ead21 100644 --- a/examples/tcpecho/Makefile +++ b/examples/tcpecho/Makefile @@ -88,8 +88,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat else +install: + context: endif diff --git a/examples/telnetd/Makefile b/examples/telnetd/Makefile index 18e035113..e37b09c69 100644 --- a/examples/telnetd/Makefile +++ b/examples/telnetd/Makefile @@ -87,8 +87,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat else +install: + context: endif diff --git a/examples/thttpd/Makefile b/examples/thttpd/Makefile index b74dc70dd..8ce70cc70 100644 --- a/examples/thttpd/Makefile +++ b/examples/thttpd/Makefile @@ -80,6 +80,8 @@ headers: $(call ARCHIVE, $(BIN), $(OBJS)) @touch .built +install: + context: .depend: Makefile $(SRCS) diff --git a/examples/thttpd/content/Makefile b/examples/thttpd/content/Makefile index 9ef8fe98a..561bcbf3c 100644 --- a/examples/thttpd/content/Makefile +++ b/examples/thttpd/content/Makefile @@ -62,7 +62,8 @@ build: $(foreach DIR, $(SUBDIRS), $(DIR)_build) # Install each program in the romfs directory -install: $(foreach DIR, $(SUBDIRS), $(DIR)_install) +install: + $(foreach DIR, $(SUBDIRS), $(DIR)_install) @( for file in $(INSTALL_FILES); do\ install -m 0644 -D $${file} $(ROMFS_DIR)/$${file}; \ done; ) diff --git a/examples/thttpd/content/hello/Makefile b/examples/thttpd/content/hello/Makefile index 2856490ab..0273c7a98 100644 --- a/examples/thttpd/content/hello/Makefile +++ b/examples/thttpd/content/hello/Makefile @@ -77,5 +77,6 @@ clean: $(call CLEAN) install: + $(Q) install -m 0755 -D $(BIN) $(CGI_DIR)/$(BIN) diff --git a/examples/thttpd/content/netstat/Makefile b/examples/thttpd/content/netstat/Makefile index 6d89bcd88..232731cd9 100644 --- a/examples/thttpd/content/netstat/Makefile +++ b/examples/thttpd/content/netstat/Makefile @@ -77,5 +77,6 @@ clean: $(call CLEAN) install: + $(Q) install -m 0755 -D $(BIN) $(CGI_DIR)/$(BIN) diff --git a/examples/thttpd/content/tasks/Makefile b/examples/thttpd/content/tasks/Makefile index 418fca2b3..7c6e01231 100644 --- a/examples/thttpd/content/tasks/Makefile +++ b/examples/thttpd/content/tasks/Makefile @@ -77,5 +77,6 @@ clean: $(call CLEAN) install: + $(Q) install -m 0755 -D $(BIN) $(CGI_DIR)/$(BIN) diff --git a/examples/tiff/Makefile b/examples/tiff/Makefile index 567a5dbe6..5fc100ff9 100644 --- a/examples/tiff/Makefile +++ b/examples/tiff/Makefile @@ -87,8 +87,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat else +install: + context: endif diff --git a/examples/touchscreen/Makefile b/examples/touchscreen/Makefile index b9dea1d39..fa7715c99 100644 --- a/examples/touchscreen/Makefile +++ b/examples/touchscreen/Makefile @@ -87,8 +87,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat else +install: + context: endif diff --git a/examples/udp/Makefile b/examples/udp/Makefile index 60932024e..d40aa089c 100644 --- a/examples/udp/Makefile +++ b/examples/udp/Makefile @@ -107,6 +107,8 @@ $(HOST_BIN): $(HOST_OBJS) .built: $(TARG_BIN) $(HOST_BIN) @touch .built +install: + context: .depend: Makefile $(TARG_SRCS) diff --git a/examples/usbserial/Makefile b/examples/usbserial/Makefile index 9f7c7a814..c251d1ab9 100644 --- a/examples/usbserial/Makefile +++ b/examples/usbserial/Makefile @@ -76,6 +76,8 @@ $(COBJS): %$(OBJEXT): %.c $(call ARCHIVE, $(BIN), $(OBJS)) @touch .built +install: + context: .depend: Makefile $(SRCS) diff --git a/examples/usbterm/Makefile b/examples/usbterm/Makefile index 84608f586..edb258685 100644 --- a/examples/usbterm/Makefile +++ b/examples/usbterm/Makefile @@ -87,8 +87,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat else +install: + context: endif diff --git a/examples/watchdog/Makefile b/examples/watchdog/Makefile index f6b80652b..2cb2400ed 100644 --- a/examples/watchdog/Makefile +++ b/examples/watchdog/Makefile @@ -87,8 +87,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat else +install: + context: endif diff --git a/examples/webserver/Makefile b/examples/webserver/Makefile index a1589936e..f207eebfe 100644 --- a/examples/webserver/Makefile +++ b/examples/webserver/Makefile @@ -80,6 +80,8 @@ $(COBJS): %$(OBJEXT): %.c httpd_fsdata.c: httpd-fs/* $(TOPDIR)/tools/mkfsdata.pl +install: + context: .depend: Makefile $(SRCS) diff --git a/examples/wget/Makefile b/examples/wget/Makefile index 5e6c1480c..5144cce62 100644 --- a/examples/wget/Makefile +++ b/examples/wget/Makefile @@ -77,6 +77,8 @@ $(COBJS): %$(OBJEXT): %.c $(call ARCHIVE, $(BIN), $(OBJS)) @touch .built +install: + context: .depend: Makefile $(SRCS) diff --git a/examples/wgetjson/Makefile b/examples/wgetjson/Makefile index f40d86ba9..d8cdacccf 100644 --- a/examples/wgetjson/Makefile +++ b/examples/wgetjson/Makefile @@ -87,8 +87,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat else +install: + context: endif diff --git a/examples/xmlrpc/Makefile b/examples/xmlrpc/Makefile index 305e94285..0d3ec7d1d 100644 --- a/examples/xmlrpc/Makefile +++ b/examples/xmlrpc/Makefile @@ -88,8 +88,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat else +install: + context: endif diff --git a/graphics/Makefile b/graphics/Makefile index 52d42c563..7503c4343 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -58,6 +58,8 @@ $(foreach SDIR, $(SUBDIRS), $(eval $(call SDIR_template,$(SDIR),distclean))) nothing: +install: + context: # $(foreach SDIR, $(CNTXTDIRS), $(SDIR)_context) depend: $(foreach SDIR, $(SUBDIRS), $(SDIR)_depend) diff --git a/graphics/screenshot/Makefile b/graphics/screenshot/Makefile index 08a6f351f..fe52f924b 100644 --- a/graphics/screenshot/Makefile +++ b/graphics/screenshot/Makefile @@ -91,8 +91,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat else +install: + context: endif diff --git a/graphics/tiff/Makefile b/graphics/tiff/Makefile index 8eff3a0cd..3f04b4f30 100644 --- a/graphics/tiff/Makefile +++ b/graphics/tiff/Makefile @@ -77,6 +77,8 @@ $(COBJS): %$(OBJEXT): %.c $(call ARCHIVE, $(BIN), $(OBJS)) $(Q) touch .built +install: + context: .depend: Makefile $(SRCS) diff --git a/import/Makefile b/import/Makefile index e247fa3ef..d920251b8 100644 --- a/import/Makefile +++ b/import/Makefile @@ -46,6 +46,8 @@ all: nothing nothing: +install: + context: depend: diff --git a/interpreters/Makefile b/interpreters/Makefile index 735038cd6..8c9ed8f8b 100644 --- a/interpreters/Makefile +++ b/interpreters/Makefile @@ -67,6 +67,8 @@ $(foreach SDIR, $(INSTALLED_DIRS), $(eval $(call SDIR_template,$(SDIR),distclean nothing: +install: + context: depend: $(foreach SDIR, $(INSTALLED_DIRS), $(SDIR)_depend) diff --git a/interpreters/ficl/Makefile b/interpreters/ficl/Makefile index 3b2dc7ab9..958b5f84c 100644 --- a/interpreters/ficl/Makefile +++ b/interpreters/ficl/Makefile @@ -99,6 +99,8 @@ debug: $(call ARCHIVE, $(BIN), $(OBJS)) $(Q) touch .built +install: + context: .depend: debug Makefile $(SRCS) diff --git a/modbus/Makefile b/modbus/Makefile index 49d47abcd..9ed7dc967 100644 --- a/modbus/Makefile +++ b/modbus/Makefile @@ -96,6 +96,8 @@ ifeq ($(CONFIG_MODBUS),y) $(Q) touch .built endif +install: + context: .depend: Makefile $(SRCS) diff --git a/netutils/Makefile b/netutils/Makefile index b6244e2f9..4d30700f8 100644 --- a/netutils/Makefile +++ b/netutils/Makefile @@ -58,6 +58,8 @@ $(foreach SDIR, $(SUBDIRS), $(eval $(call SDIR_template,$(SDIR),distclean))) nothing: +install: + context: depend: $(foreach SDIR, $(SUBDIRS), $(SDIR)_depend) diff --git a/netutils/codecs/Makefile b/netutils/codecs/Makefile index f0b55c5f8..3d77f47fe 100644 --- a/netutils/codecs/Makefile +++ b/netutils/codecs/Makefile @@ -75,6 +75,8 @@ $(COBJS): %$(OBJEXT): %.c $(call ARCHIVE, $(BIN), $(OBJS)) $(Q) touch .built +install: + context: .depend: Makefile $(SRCS) diff --git a/netutils/dhcpc/Makefile b/netutils/dhcpc/Makefile index f8a680e32..ffa88a9e8 100644 --- a/netutils/dhcpc/Makefile +++ b/netutils/dhcpc/Makefile @@ -81,6 +81,8 @@ $(COBJS): %$(OBJEXT): %.c $(call ARCHIVE, $(BIN), $(OBJS)) $(Q) touch .built +install: + context: .depend: Makefile $(SRCS) diff --git a/netutils/dhcpd/Makefile b/netutils/dhcpd/Makefile index 5eedf758f..7fb52b33d 100644 --- a/netutils/dhcpd/Makefile +++ b/netutils/dhcpd/Makefile @@ -81,6 +81,8 @@ $(COBJS): %$(OBJEXT): %.c $(call ARCHIVE, $(BIN), $(OBJS)) $(Q) touch .built +install: + context: .depend: Makefile $(SRCS) diff --git a/netutils/discover/Makefile b/netutils/discover/Makefile index 5054e52fe..4337e9ed7 100644 --- a/netutils/discover/Makefile +++ b/netutils/discover/Makefile @@ -84,6 +84,8 @@ $(COBJS): %$(OBJEXT): %.c $(call ARCHIVE, $(BIN), $(OBJS)) $(Q) touch .built +install: + context: .depend: Makefile $(SRCS) diff --git a/netutils/dnsclient/Makefile b/netutils/dnsclient/Makefile index 9b5f11631..3fb2c6ba9 100644 --- a/netutils/dnsclient/Makefile +++ b/netutils/dnsclient/Makefile @@ -81,6 +81,8 @@ $(COBJS): %$(OBJEXT): %.c $(call ARCHIVE, $(BIN), $(OBJS)) $(Q) touch .built +install: + context: .depend: Makefile $(SRCS) diff --git a/netutils/ftpc/Makefile b/netutils/ftpc/Makefile index 09ed62cdb..a0075f58e 100644 --- a/netutils/ftpc/Makefile +++ b/netutils/ftpc/Makefile @@ -97,6 +97,8 @@ $(COBJS): %$(OBJEXT): %.c $(call ARCHIVE, $(BIN), $(OBJS)) $(Q) touch .built +install: + context: .depend: Makefile $(SRCS) diff --git a/netutils/ftpd/Makefile b/netutils/ftpd/Makefile index 1a779f4ba..6fb76ba8d 100644 --- a/netutils/ftpd/Makefile +++ b/netutils/ftpd/Makefile @@ -81,6 +81,8 @@ $(COBJS): %$(OBJEXT): %.c $(call ARCHIVE, $(BIN), $(OBJS)) $(Q) touch .built +install: + context: .depend: Makefile $(SRCS) diff --git a/netutils/json/Makefile b/netutils/json/Makefile index 17eb55e71..44237d238 100644 --- a/netutils/json/Makefile +++ b/netutils/json/Makefile @@ -75,6 +75,8 @@ $(COBJS): %$(OBJEXT): %.c $(call ARCHIVE, $(BIN), $(OBJS)) $(Q) touch .built +install: + context: .depend: Makefile $(SRCS) diff --git a/netutils/netlib/Makefile b/netutils/netlib/Makefile index 7eb376646..8de89a857 100644 --- a/netutils/netlib/Makefile +++ b/netutils/netlib/Makefile @@ -97,6 +97,8 @@ $(COBJS): %$(OBJEXT): %.c $(call ARCHIVE, $(BIN), $(OBJS)) $(Q) touch .built +install: + context: .depend: Makefile $(SRCS) diff --git a/netutils/ntpclient/Makefile b/netutils/ntpclient/Makefile index cbde46060..79014d5a8 100755 --- a/netutils/ntpclient/Makefile +++ b/netutils/ntpclient/Makefile @@ -81,6 +81,8 @@ $(COBJS): %$(OBJEXT): %.c $(call ARCHIVE, $(BIN), $(OBJS)) $(Q) touch .built +install: + context: .depend: Makefile $(SRCS) diff --git a/netutils/smtp/Makefile b/netutils/smtp/Makefile index d3dbaebf8..450fafab0 100644 --- a/netutils/smtp/Makefile +++ b/netutils/smtp/Makefile @@ -81,6 +81,8 @@ $(COBJS): %$(OBJEXT): %.c $(call ARCHIVE, $(BIN), $(OBJS)) $(Q) touch .built +install: + context: .depend: Makefile $(SRCS) diff --git a/netutils/telnetd/Makefile b/netutils/telnetd/Makefile index 99caf425f..a377a54d3 100644 --- a/netutils/telnetd/Makefile +++ b/netutils/telnetd/Makefile @@ -81,6 +81,8 @@ $(COBJS): %$(OBJEXT): %.c $(call ARCHIVE, $(BIN), $(OBJS)) $(Q) touch .built +install: + context: .depend: Makefile $(SRCS) diff --git a/netutils/tftpc/Makefile b/netutils/tftpc/Makefile index 952bc620e..b629978a5 100644 --- a/netutils/tftpc/Makefile +++ b/netutils/tftpc/Makefile @@ -83,6 +83,8 @@ $(COBJS): %$(OBJEXT): %.c $(call ARCHIVE, $(BIN), $(OBJS)) $(Q) touch .built +install: + context: .depend: Makefile $(SRCS) diff --git a/netutils/thttpd/Makefile b/netutils/thttpd/Makefile index a2eaa3476..60c7fbe14 100644 --- a/netutils/thttpd/Makefile +++ b/netutils/thttpd/Makefile @@ -113,6 +113,8 @@ endif $(call ARCHIVE, $(BIN), $(OBJS)) $(Q) touch .built +install: + context: .depend: Makefile $(SRCS) diff --git a/netutils/webclient/Makefile b/netutils/webclient/Makefile index aacbe0dc3..10dd2c1eb 100644 --- a/netutils/webclient/Makefile +++ b/netutils/webclient/Makefile @@ -81,6 +81,8 @@ $(COBJS): %$(OBJEXT): %.c $(call ARCHIVE, $(BIN), $(OBJS)) $(Q) touch .built +install: + context: .depend: Makefile $(SRCS) diff --git a/netutils/webserver/Makefile b/netutils/webserver/Makefile index 06b528006..47fd1047a 100644 --- a/netutils/webserver/Makefile +++ b/netutils/webserver/Makefile @@ -88,6 +88,8 @@ $(COBJS): %$(OBJEXT): %.c $(call ARCHIVE, $(BIN), $(OBJS)) $(Q) touch .built +install: + context: .depend: Makefile $(SRCS) diff --git a/netutils/xmlrpc/Makefile b/netutils/xmlrpc/Makefile index a00436511..bcd17b7a6 100644 --- a/netutils/xmlrpc/Makefile +++ b/netutils/xmlrpc/Makefile @@ -82,6 +82,8 @@ $(COBJS): %$(OBJEXT): %.c $(call ARCHIVE, $(BIN), $(OBJS)) $(Q) touch .built +install: + context: .depend: Makefile $(SRCS) diff --git a/nshlib/Makefile b/nshlib/Makefile index a78299222..9f2e504bc 100644 --- a/nshlib/Makefile +++ b/nshlib/Makefile @@ -139,6 +139,8 @@ $(COBJS): %$(OBJEXT): %.c $(call ARCHIVE, $(BIN), $(OBJS)) @touch .built +install: + context: .depend: Makefile $(SRCS) diff --git a/platform/Makefile b/platform/Makefile index 196dfd52d..72cc4e97c 100644 --- a/platform/Makefile +++ b/platform/Makefile @@ -114,6 +114,8 @@ $(PLATFORMDIR): $(TOPDIR)$(DELIM).config $(Q) $(DIRUNLINK) $(PLATFORMDIR) $(Q) $(DIRLINK) $(LINKDIR) $(PLATFORMDIR) +install: + context: $(PLATFORMDIR) # Dependencies diff --git a/system/Makefile b/system/Makefile index f5d35bfc6..e0806ebda 100644 --- a/system/Makefile +++ b/system/Makefile @@ -69,6 +69,8 @@ $(foreach SDIR, $(INSTALLED_DIRS), $(eval $(call SDIR_template,$(SDIR),distclean nothing: +install: + context: depend: $(foreach SDIR, $(INSTALLED_DIRS), $(SDIR)_depend) diff --git a/system/cdcacm/Makefile b/system/cdcacm/Makefile index 283add323..18ba2508e 100644 --- a/system/cdcacm/Makefile +++ b/system/cdcacm/Makefile @@ -94,8 +94,12 @@ $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME1)_main.bdat: $(DEPCONFIG) Makefile $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME2)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME2),$(PRIORITY2),$(STACKSIZE2),$(APPNAME2)_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME1)_main.bdat $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME2)_main.bdat else +install: + context: endif diff --git a/system/cle/Makefile b/system/cle/Makefile index 78b1ffd35..33fd03afa 100644 --- a/system/cle/Makefile +++ b/system/cle/Makefile @@ -81,6 +81,8 @@ $(COBJS): %$(OBJEXT): %.c $(call ARCHIVE, $(BIN), $(OBJS)) $(Q) touch .built +install: + context: # Create dependencies diff --git a/system/composite/Makefile b/system/composite/Makefile index a4ca37871..64f3d74ab 100644 --- a/system/composite/Makefile +++ b/system/composite/Makefile @@ -94,8 +94,12 @@ $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME1)_main.bdat: $(DEPCONFIG) Makefile $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME2)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME2),$(PRIORITY2),$(STACKSIZE2),$(APPNAME2)_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME1)_main.bdat $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME2)_main.bdat else +install: + context: endif diff --git a/system/flash_eraseall/Makefile b/system/flash_eraseall/Makefile index 6b51aed35..04edb966b 100644 --- a/system/flash_eraseall/Makefile +++ b/system/flash_eraseall/Makefile @@ -97,8 +97,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat else +install: + context: endif diff --git a/system/free/Makefile b/system/free/Makefile index 737d111af..325b6abaa 100644 --- a/system/free/Makefile +++ b/system/free/Makefile @@ -93,8 +93,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat else +install: + context: endif diff --git a/system/hex2bin/Makefile b/system/hex2bin/Makefile index f7a710a74..61e0a69ee 100644 --- a/system/hex2bin/Makefile +++ b/system/hex2bin/Makefile @@ -116,6 +116,8 @@ else rhex2mem: endif +install: + context: rhex2bin rhex2mem .depend: Makefile $(SRCS) diff --git a/system/i2c/Makefile b/system/i2c/Makefile index 4cad67ecf..ef52e3153 100644 --- a/system/i2c/Makefile +++ b/system/i2c/Makefile @@ -84,8 +84,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat else +install: + context: endif diff --git a/system/inifile/Makefile b/system/inifile/Makefile index d51ba1b7d..6e823b9bb 100644 --- a/system/inifile/Makefile +++ b/system/inifile/Makefile @@ -76,6 +76,8 @@ $(COBJS): %$(OBJEXT): %.c $(call ARCHIVE, $(BIN), $(OBJS)) $(Q) touch .built +install: + context: .depend: Makefile $(SRCS) diff --git a/system/install/Makefile b/system/install/Makefile index fb7c4de05..9c7fc8dbd 100644 --- a/system/install/Makefile +++ b/system/install/Makefile @@ -97,8 +97,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat else +install: + context: endif diff --git a/system/mdio/Makefile b/system/mdio/Makefile index 8a9fea23a..10220f350 100644 --- a/system/mdio/Makefile +++ b/system/mdio/Makefile @@ -87,8 +87,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat else +install: + context: endif diff --git a/system/nxplayer/Makefile b/system/nxplayer/Makefile index 812b9e7bf..501600023 100644 --- a/system/nxplayer/Makefile +++ b/system/nxplayer/Makefile @@ -100,11 +100,17 @@ ifeq ($(CONFIG_NXPLAYER_COMMAND_LINE),y) $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat else +install: + context: endif else +install: + context: endif diff --git a/system/poweroff/Makefile b/system/poweroff/Makefile index 382911875..5203db0be 100644 --- a/system/poweroff/Makefile +++ b/system/poweroff/Makefile @@ -97,8 +97,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat else +install: + context: endif diff --git a/system/prun/Makefile b/system/prun/Makefile index 6d5d0a768..430b48d4d 100644 --- a/system/prun/Makefile +++ b/system/prun/Makefile @@ -102,11 +102,17 @@ ifeq ($(CONFIG_SYSTEM_PEXEC),y) $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat else +install: + context: endif else +install: + context: endif diff --git a/system/ramtest/Makefile b/system/ramtest/Makefile index c6df8bde4..9d8d6e8ab 100644 --- a/system/ramtest/Makefile +++ b/system/ramtest/Makefile @@ -90,8 +90,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) $(BUILTIN_REGISTRY)$(DELIM)ramtest.bdat: $(DEPCONFIG) Makefile $(call REGISTER,"ramtest",$(PRIORITY),$(STACKSIZE),ramtest_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)ramtest.bdat else +install: + context: endif diff --git a/system/ramtron/Makefile b/system/ramtron/Makefile index 4ac47431a..fea0d4939 100644 --- a/system/ramtron/Makefile +++ b/system/ramtron/Makefile @@ -97,8 +97,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat else +install: + context: endif diff --git a/system/readline/Makefile b/system/readline/Makefile index 1f60f45fc..191c36cb9 100644 --- a/system/readline/Makefile +++ b/system/readline/Makefile @@ -89,6 +89,8 @@ $(COBJS): %$(OBJEXT): %.c # Context build phase target +install: + context: # Dependency build phase target diff --git a/system/sdcard/Makefile b/system/sdcard/Makefile index 87dfb697b..acf8381d3 100644 --- a/system/sdcard/Makefile +++ b/system/sdcard/Makefile @@ -97,8 +97,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat else +install: + context: endif diff --git a/system/stackmonitor/Makefile b/system/stackmonitor/Makefile index 5e7102c4f..f2b73365d 100644 --- a/system/stackmonitor/Makefile +++ b/system/stackmonitor/Makefile @@ -93,8 +93,12 @@ $(BUILTIN_REGISTRY)$(DELIM)stackmonitor_start.bdat: $(DEPCONFIG) Makefile $(BUILTIN_REGISTRY)$(DELIM)stackmonitor_stop.bdat: $(DEPCONFIG) Makefile $(call REGISTER,"stkmon_stop",$(PRIORITY),$(STACKSIZE),stackmonitor_stop) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)stackmonitor_start.bdat $(BUILTIN_REGISTRY)$(DELIM)stackmonitor_stop.bdat else +install: + context: endif diff --git a/system/sudoku/Makefile b/system/sudoku/Makefile index c0500f371..664bb5c77 100644 --- a/system/sudoku/Makefile +++ b/system/sudoku/Makefile @@ -93,8 +93,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) $(BUILTIN_REGISTRY)$(DELIM)sudoku.bdat: $(DEPCONFIG) Makefile $(call REGISTER,"sudoku",$(PRIORITY),$(STACKSIZE),sudoku_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)sudoku.bdat else +install: + context: endif diff --git a/system/sysinfo/Makefile b/system/sysinfo/Makefile index 32edf1ab8..9c213ae28 100644 --- a/system/sysinfo/Makefile +++ b/system/sysinfo/Makefile @@ -98,8 +98,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat else +install: + context: endif diff --git a/system/usbmonitor/Makefile b/system/usbmonitor/Makefile index 4516d31d6..f712a1d91 100644 --- a/system/usbmonitor/Makefile +++ b/system/usbmonitor/Makefile @@ -93,8 +93,12 @@ $(BUILTIN_REGISTRY)$(DELIM)usbmonitor_start.bdat: $(DEPCONFIG) Makefile $(BUILTIN_REGISTRY)$(DELIM)usbmonitor_stop.bdat: $(DEPCONFIG) Makefile $(call REGISTER,"usbmon_stop",$(PRIORITY),$(STACKSIZE),usbmonitor_stop) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)usbmonitor_start.bdat $(BUILTIN_REGISTRY)$(DELIM)usbmonitor_stop.bdat else +install: + context: endif diff --git a/system/usbmsc/Makefile b/system/usbmsc/Makefile index 7ee0765eb..2f6073d70 100644 --- a/system/usbmsc/Makefile +++ b/system/usbmsc/Makefile @@ -97,8 +97,12 @@ $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME1)_main.bdat: $(DEPCONFIG) Makefile $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME2)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME2),$(PRIORITY2),$(STACKSIZE2),$(APPNAME2)_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME1)_main.bdat $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME2)_main.bdat else +install: + context: endif diff --git a/system/vi/Makefile b/system/vi/Makefile index 80ea483c8..8eba9d788 100644 --- a/system/vi/Makefile +++ b/system/vi/Makefile @@ -94,8 +94,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat else +install: + context: endif diff --git a/system/zmodem/Makefile b/system/zmodem/Makefile index 8607863ba..602ad2541 100644 --- a/system/zmodem/Makefile +++ b/system/zmodem/Makefile @@ -96,8 +96,12 @@ $(BUILTIN_REGISTRY)$(DELIM)sz.bdat: $(DEPCONFIG) Makefile $(BUILTIN_REGISTRY)$(DELIM)rz.bdat: $(DEPCONFIG) Makefile $(call REGISTER,"rz",$(PRIORITY),$(STACKSIZE),rz_main) +install: + context: $(BUILTIN_REGISTRY)$(DELIM)sz.bdat $(BUILTIN_REGISTRY)$(DELIM)rz.bdat else +install: + context: endif