From a66da34f185c34400985708370031e0c806c2635 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 13 Aug 2017 09:35:14 -0600 Subject: [PATCH] All Makefiles: Add .PRECIOUS: apps/libapps.a to every Makefile. Hopefully this will end awkward problems when you Control-C out of a build and libapps.a is deleted. --- Application.mk | 3 ++- Makefile | 1 + builtin/Makefile | 7 ++++--- builtin/registry/Makefile | 1 + canutils/libcanard/Makefile | 8 +++++--- canutils/libuavcan/Makefile | 8 +++++--- examples/bastest/Makefile | 7 ++++--- examples/bridge/Makefile | 7 ++++--- examples/cc3000/Makefile | 7 ++++--- examples/chat/Makefile | 7 ++++--- examples/elf/Makefile | 7 ++++--- examples/elf/tests/Makefile | 1 + examples/elf/tests/errno/Makefile | 1 + examples/elf/tests/hello/Makefile | 1 + examples/elf/tests/helloxx/Makefile | 1 + 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/ftpd/Makefile | 7 ++++--- examples/module/Makefile | 7 ++++--- examples/module/drivers/Makefile | 1 + examples/module/drivers/chardev/Makefile | 1 + examples/nettest/Makefile | 1 + examples/nsh/Makefile | 7 +++++++ examples/nxflat/Makefile | 7 ++++--- examples/nxflat/tests/Makefile | 1 + examples/poll/Makefile | 7 ++++--- examples/posix_spawn/Makefile | 5 +++-- examples/posix_spawn/filesystem/Makefile | 1 + examples/posix_spawn/filesystem/hello/Makefile | 1 + examples/posix_spawn/filesystem/redirect/Makefile | 1 + examples/romfs/Makefile | 8 ++++---- examples/sotest/Makefile | 7 ++++--- examples/sotest/lib/Makefile | 1 + examples/sotest/lib/modprint/Makefile | 1 + examples/sotest/lib/sotest/Makefile | 1 + examples/thttpd/Makefile | 8 ++++---- examples/thttpd/content/hello/Makefile | 1 + examples/thttpd/content/tasks/Makefile | 1 + examples/tiff/Makefile | 7 ++++--- examples/udgram/Makefile | 8 ++++---- examples/udp/Makefile | 1 + examples/udpblaster/Makefile | 8 ++++---- examples/unionfs/Makefile | 8 ++++---- examples/usbserial/Makefile | 8 ++++---- examples/ustream/Makefile | 8 ++++---- examples/webserver/Makefile | 8 ++++---- fsutils/flash_eraseall/Makefile | 3 ++- fsutils/inifile/Makefile | 8 ++++---- fsutils/mksmartfs/Makefile | 7 ++++--- fsutils/passwd/Makefile | 7 ++++--- gpsutils/minmea/Makefile | 7 ++++--- graphics/screenshot/Makefile | 7 ++++--- graphics/tiff/Makefile | 7 ++++--- graphics/traveler/Makefile | 7 ++++--- graphics/traveler/tools/include/Makefile | 1 + import/Makefile | 1 + interpreters/bas/Makefile | 8 ++++---- interpreters/ficl/Makefile | 1 + interpreters/micropython/Makefile | 7 ++++--- interpreters/minibasic/Makefile | 8 ++++---- modbus/Makefile | 7 +++---- netutils/chat/Makefile | 7 ++++--- netutils/codecs/Makefile | 7 ++++--- netutils/dhcpc/Makefile | 7 ++++--- netutils/dhcpd/Makefile | 7 ++++--- netutils/discover/Makefile | 7 ++++--- netutils/esp8266/Makefile | 7 ++++--- netutils/ftpc/Makefile | 7 ++++--- netutils/ftpd/Makefile | 7 ++++--- netutils/json/Makefile | 7 ++++--- netutils/netlib/Makefile | 7 ++++--- netutils/ntpclient/Makefile | 7 ++++--- netutils/ping/Makefile | 7 ++++--- netutils/pppd/Makefile | 7 ++++--- netutils/smtp/Makefile | 7 ++++--- netutils/telnetc/Makefile | 1 + netutils/telnetd/Makefile | 7 ++++--- netutils/tftpc/Makefile | 7 ++++--- netutils/thttpd/Makefile | 7 ++++--- netutils/webclient/Makefile | 7 ++++--- netutils/webserver/Makefile | 7 ++++--- netutils/xmlrpc/Makefile | 7 ++++--- nshlib/Makefile | 8 ++++---- platform/Makefile | 8 ++++---- platform/bin/Makefile | 1 + system/cdcacm/Makefile | 8 ++++---- system/cle/Makefile | 8 ++++---- system/composite/Makefile | 8 ++++---- system/cu/Makefile | 8 ++++---- system/dhcpc/Makefile | 7 ++++--- system/flash_eraseall/Makefile | 2 +- system/free/Makefile | 7 ++++--- system/hex2bin/Makefile | 8 ++++---- system/hexed/Makefile | 7 ++++--- system/i2c/Makefile | 8 ++++---- system/install/Makefile | 7 ++++--- system/lm75/Makefile | 7 ++++--- system/mdio/Makefile | 7 ++++--- system/netdb/Makefile | 7 ++++--- system/ntpc/Makefile | 7 ++++--- system/nxplayer/Makefile | 7 ++++--- system/prun/Makefile | 7 ++++--- system/ramtest/Makefile | 7 ++++--- system/readline/Makefile | 7 ++++--- system/stackmonitor/Makefile | 7 ++++--- system/sudoku/Makefile | 7 ++++--- system/symtab/Makefile | 7 ++++--- system/tee/Makefile | 7 ++++--- system/telnet/Makefile | 1 + system/ubloxmodem/Makefile | 7 ++++--- system/usbmsc/Makefile | 8 ++++---- system/vi/Makefile | 7 ++++--- system/zmodem/Makefile | 7 ++++--- wireless/ieee802154/Makefile | 8 ++++---- wireless/ieee802154/i8sak/Makefile | 1 + wireless/ieee802154/libmac/Makefile | 1 + wireless/ieee802154/libutils/Makefile | 1 + wireless/ieee802154/wpanlistener/Makefile | 1 + wireless/iwpan/Makefile | 7 ++++--- wireless/wapi/Makefile | 7 ++++--- 124 files changed, 387 insertions(+), 279 deletions(-) diff --git a/Application.mk b/Application.mk index bfdc79f6a..9a05769a8 100644 --- a/Application.mk +++ b/Application.mk @@ -63,6 +63,7 @@ else BIN = $(APPDIR)$(DELIM)libapps$(LIBEXT) INSTALL_DIR = $(BIN_DIR) endif +DEPBIN = $(APPDIR)/libapps$(LIBEXT) ROOTDEPPATH = --dep-path . @@ -70,7 +71,7 @@ VPATH = all: .built .PHONY: clean preconfig depend distclean -.PRECIOUS: $(BIN) +.PRECIOUS: $(DEPBIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/Makefile b/Makefile index e5cdd6d72..ec8aad38d 100644 --- a/Makefile +++ b/Makefile @@ -77,6 +77,7 @@ BIN = libapps$(LIBEXT) all: $(BIN) .PHONY: import install dirlinks context context_serialize context_rest .depdirs preconfig depend clean distclean +.PRECIOUS: $(BIN) define MAKE_template $(Q) cd $(1) && $(MAKE) $(2) TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)" BIN_DIR="$(BIN_DIR)" diff --git a/builtin/Makefile b/builtin/Makefile index 6af1922ad..610689f59 100644 --- a/builtin/Makefile +++ b/builtin/Makefile @@ -63,7 +63,8 @@ VPATH = # Build Targets all: .built -.PHONY: context depend clean distclean +.PHONY: context depend clean distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -135,6 +136,6 @@ distclean: clean $(call DELFILE, builtin_list.h) $(call DELFILE, builtin_proto.h) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/builtin/registry/Makefile b/builtin/registry/Makefile index 255e55206..b59654d09 100644 --- a/builtin/registry/Makefile +++ b/builtin/registry/Makefile @@ -40,6 +40,7 @@ include $(APPDIR)/Make.defs all: .PHONY: context depend clean distclean +.PRECIOUS: $(BIN) .updated: $(DEPCONFIG) $(call DELFILE, *.bdat) diff --git a/canutils/libcanard/Makefile b/canutils/libcanard/Makefile index 35756c3f2..9808521dc 100644 --- a/canutils/libcanard/Makefile +++ b/canutils/libcanard/Makefile @@ -62,13 +62,15 @@ ifeq ($(WINTOOL),y) else BIN = $(APPDIR)$(DELIM)libapps$(LIBEXT) endif +DEPBIN = $(APPDIR)/libapps$(LIBEXT) ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: clean depend distclean +.PHONY: clean depend distclean preconfig +.PRECIOUS: $(DEPBIN) $(LIBCANARD_PACKNAME): @echo "Downloading: $@" @@ -120,6 +122,6 @@ distclean: clean $(call DELDIR, $(LIBCANARD_UNPACKNAME)) $(call DELFILE, $(LIBCANARD_PACKNAME)) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/canutils/libuavcan/Makefile b/canutils/libuavcan/Makefile index f5f4e4ff0..396eb448b 100644 --- a/canutils/libuavcan/Makefile +++ b/canutils/libuavcan/Makefile @@ -172,13 +172,15 @@ ifeq ($(WINTOOL),y) else BIN = $(APPDIR)$(DELIM)libapps$(LIBEXT) endif +DEPBIN = $(APPDIR)/libapps$(LIBEXT) ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: clean depend distclean +.PHONY: clean depend distclean preconfig +.PRECIOUS: $(DEPBIN) $(LIBUAVCAN_PACKNAME): @echo "Downloading: $@" @@ -265,6 +267,6 @@ distclean: clean $(call DELDIR, $(PYUAVCAN_UNPACKNAME)) $(call DELFILE, $(PYUAVCAN_PACKNAME)) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/examples/bastest/Makefile b/examples/bastest/Makefile index 0269b1015..cef10460c 100644 --- a/examples/bastest/Makefile +++ b/examples/bastest/Makefile @@ -90,7 +90,8 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: clean depend distclean +.PHONY: clean depend distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -156,6 +157,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/examples/bridge/Makefile b/examples/bridge/Makefile index da45bc5ea..99523bcb8 100644 --- a/examples/bridge/Makefile +++ b/examples/bridge/Makefile @@ -96,7 +96,8 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: clean depend distclean +.PHONY: clean depend distclean preconfig +.PRECIOUS: $(BIN) $(TARG_AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -165,6 +166,6 @@ distclean: clean $(call DELFILE, .depend) $(call DELFILE, bridge_config.h) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/examples/cc3000/Makefile b/examples/cc3000/Makefile index be6943860..b57ec9f31 100644 --- a/examples/cc3000/Makefile +++ b/examples/cc3000/Makefile @@ -99,7 +99,8 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: clean depend distclean +.PHONY: clean depend distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -153,6 +154,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/examples/chat/Makefile b/examples/chat/Makefile index e5031e729..79a6d6fd4 100644 --- a/examples/chat/Makefile +++ b/examples/chat/Makefile @@ -81,7 +81,8 @@ STACKSIZE = 2048 # Build targets all: .built -.PHONY: context .depend depend clean distclean +.PHONY: context .depend depend clean distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -129,6 +130,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/examples/elf/Makefile b/examples/elf/Makefile index 78834c7de..34376d973 100644 --- a/examples/elf/Makefile +++ b/examples/elf/Makefile @@ -80,7 +80,8 @@ ROOTDEPPATH = --dep-path . --dep-path tests VPATH = tests all: .built -.PHONY: really_build clean_tests clean depend distclean +.PHONY: really_build clean_tests clean depend distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -135,6 +136,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/examples/elf/tests/Makefile b/examples/elf/tests/Makefile index 84e0e322e..9d58222a6 100644 --- a/examples/elf/tests/Makefile +++ b/examples/elf/tests/Makefile @@ -75,6 +75,7 @@ endef all: $(ROMFS_HDR) $(DIRLIST_HDR) $(SYMTAB_SRC) .PHONY: all build clean install populate +.PRECIOUS: $(BIN) $(foreach DIR, $(BUILD_SUBDIRS), $(eval $(call DIR_template,$(DIR),build, all))) $(foreach DIR, $(ALL_SUBDIRS), $(eval $(call DIR_template,$(DIR),clean,clean))) diff --git a/examples/elf/tests/errno/Makefile b/examples/elf/tests/errno/Makefile index 6b2d4e0b4..dd8bd938a 100644 --- a/examples/elf/tests/errno/Makefile +++ b/examples/elf/tests/errno/Makefile @@ -73,6 +73,7 @@ OBJS = $(SRCS:.c=$(OBJEXT)) all: $(BIN) .PHONY: clean install +.PRECIOUS: $(BIN) $(OBJS): %$(OBJEXT): %.c @echo "CC: $<" diff --git a/examples/elf/tests/hello/Makefile b/examples/elf/tests/hello/Makefile index 28ad22211..c10dc3c67 100644 --- a/examples/elf/tests/hello/Makefile +++ b/examples/elf/tests/hello/Makefile @@ -73,6 +73,7 @@ OBJS = $(SRCS:.c=$(OBJEXT)) all: $(BIN) .PHONY: clean install +.PRECIOUS: $(BIN) $(OBJS): %$(OBJEXT): %.c @echo "CC: $<" diff --git a/examples/elf/tests/helloxx/Makefile b/examples/elf/tests/helloxx/Makefile index 135bbd1b8..c4b3f3f82 100644 --- a/examples/elf/tests/helloxx/Makefile +++ b/examples/elf/tests/helloxx/Makefile @@ -102,6 +102,7 @@ LDLIBSTDC_STUBS_LIB = $(LDLIBSTDC_STUBS_DIR)/liblibxx.a all: $(BIN1) $(BIN2) $(BIN3) $(BIN4) $(BIN5) .PHONY: clean install +.PRECIOUS: $(BIN) $(OBJS): %$(OBJEXT): %.cpp @echo "CC: $<" diff --git a/examples/elf/tests/longjmp/Makefile b/examples/elf/tests/longjmp/Makefile index da76c2dbb..5cf19b8e9 100644 --- a/examples/elf/tests/longjmp/Makefile +++ b/examples/elf/tests/longjmp/Makefile @@ -73,6 +73,7 @@ OBJS = $(SRCS:.c=$(OBJEXT)) all: $(BIN) .PHONY: clean install +.PRECIOUS: $(BIN) $(OBJS): %$(OBJEXT): %.c @echo "CC: $<" diff --git a/examples/elf/tests/mutex/Makefile b/examples/elf/tests/mutex/Makefile index 865ccf497..c282bba9a 100644 --- a/examples/elf/tests/mutex/Makefile +++ b/examples/elf/tests/mutex/Makefile @@ -73,6 +73,7 @@ OBJS = $(SRCS:.c=$(OBJEXT)) all: $(BIN) .PHONY: clean install +.PRECIOUS: $(BIN) $(OBJS): %$(OBJEXT): %.c @echo "CC: $<" diff --git a/examples/elf/tests/pthread/Makefile b/examples/elf/tests/pthread/Makefile index 370dab604..35c1aaa7a 100644 --- a/examples/elf/tests/pthread/Makefile +++ b/examples/elf/tests/pthread/Makefile @@ -73,6 +73,7 @@ OBJS = $(SRCS:.c=$(OBJEXT)) all: $(BIN) .PHONY: clean install +.PRECIOUS: $(BIN) $(OBJS): %$(OBJEXT): %.c @echo "CC: $<" diff --git a/examples/elf/tests/signal/Makefile b/examples/elf/tests/signal/Makefile index 22b1185d5..34138d93f 100644 --- a/examples/elf/tests/signal/Makefile +++ b/examples/elf/tests/signal/Makefile @@ -73,6 +73,7 @@ OBJS = $(SRCS:.c=$(OBJEXT)) all: $(BIN) .PHONY: clean install +.PRECIOUS: $(BIN) $(OBJS): %$(OBJEXT): %.c @echo "CC: $<" diff --git a/examples/elf/tests/struct/Makefile b/examples/elf/tests/struct/Makefile index 8045ed386..07c7a57ab 100644 --- a/examples/elf/tests/struct/Makefile +++ b/examples/elf/tests/struct/Makefile @@ -74,6 +74,7 @@ OBJS = $(SRCS:.c=$(OBJEXT)) all: $(BIN) .PHONY: clean install +.PRECIOUS: $(BIN) $(OBJS): %$(OBJEXT): %.c @echo "CC: $<" diff --git a/examples/elf/tests/task/Makefile b/examples/elf/tests/task/Makefile index 88289fcc6..b90e97932 100644 --- a/examples/elf/tests/task/Makefile +++ b/examples/elf/tests/task/Makefile @@ -73,6 +73,7 @@ OBJS = $(SRCS:.c=$(OBJEXT)) all: $(BIN) .PHONY: clean install +.PRECIOUS: $(BIN) $(OBJS): %$(OBJEXT): %.c @echo "CC: $<" diff --git a/examples/ftpd/Makefile b/examples/ftpd/Makefile index 74c0788b5..3b881e5fc 100644 --- a/examples/ftpd/Makefile +++ b/examples/ftpd/Makefile @@ -81,7 +81,8 @@ VPATH = all: .built -.PHONY: context clean depend distclean +.PHONY: context clean depend distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -132,6 +133,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/examples/module/Makefile b/examples/module/Makefile index 0b8fb7e54..9cb8e8364 100644 --- a/examples/module/Makefile +++ b/examples/module/Makefile @@ -90,7 +90,8 @@ ROOTDEPPATH = --dep-path . --dep-path drivers VPATH = drivers all: .built -.PHONY: really_build clean_drivers clean depend distclean +.PHONY: really_build clean_drivers clean depend distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -152,6 +153,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/examples/module/drivers/Makefile b/examples/module/drivers/Makefile index 59573d2f4..6f686779b 100644 --- a/examples/module/drivers/Makefile +++ b/examples/module/drivers/Makefile @@ -54,6 +54,7 @@ endef all: $(ROMFS_HDR) $(DIRLIST_HDR) $(SYMTAB_SRC) .PHONY: all build clean install populate +.PRECIOUS: $(BIN) $(foreach DIR, $(BUILD_SUBDIRS), $(eval $(call DIR_template,$(DIR),build, all))) $(foreach DIR, $(ALL_SUBDIRS), $(eval $(call DIR_template,$(DIR),clean,clean))) diff --git a/examples/module/drivers/chardev/Makefile b/examples/module/drivers/chardev/Makefile index 4154d9dd1..545515146 100644 --- a/examples/module/drivers/chardev/Makefile +++ b/examples/module/drivers/chardev/Makefile @@ -76,6 +76,7 @@ OBJS = $(SRCS:.c=$(OBJEXT)) all: $(BIN) .PHONY: clean install +.PRECIOUS: $(BIN) $(OBJS): %$(OBJEXT): %.c @echo "CC: $<" diff --git a/examples/nettest/Makefile b/examples/nettest/Makefile index ba2241cea..13582b739 100644 --- a/examples/nettest/Makefile +++ b/examples/nettest/Makefile @@ -181,6 +181,7 @@ VPATH = all: .built $(HOST_BIN) .PHONY: clean depend distclean preconfig +.PRECIOUS: $(BIN) $(TARG1_COBJS) $(TARG1_MAINOBJ) $(TARG2_COBJS) $(TARG2_MAINOBJ) $(TARGCMN_COBJS) : %$(OBJEXT): %.c $(call COMPILE, $<, $@) diff --git a/examples/nsh/Makefile b/examples/nsh/Makefile index 1baad89b9..b6c0544a4 100644 --- a/examples/nsh/Makefile +++ b/examples/nsh/Makefile @@ -33,11 +33,18 @@ # ############################################################################ +-include $(TOPDIR)/.config -include $(TOPDIR)/Make.defs +include $(APPDIR)/Make.defs # NuttShell (NSH) Example +CONFIG_EXAMPLES_NSH_PRIORITY ?= SCHED_PRIORITY_DEFAULT +CONFIG_EXAMPLES_NSH_STACKSIZE ?= 2048 + APPNAME = nsh +PRIORITY = $(CONFIG_EXAMPLES_NSH_PRIORITY) +STACKSIZE = $(CONFIG_EXAMPLES_NSH_STACKSIZE) ASRCS = CSRCS = diff --git a/examples/nxflat/Makefile b/examples/nxflat/Makefile index 33f766684..9ca1dda4f 100644 --- a/examples/nxflat/Makefile +++ b/examples/nxflat/Makefile @@ -80,7 +80,8 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: headers clean depend distclean +.PHONY: headers clean depend distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -126,6 +127,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/examples/nxflat/tests/Makefile b/examples/nxflat/tests/Makefile index 265ac27c1..88c5527e1 100644 --- a/examples/nxflat/tests/Makefile +++ b/examples/nxflat/tests/Makefile @@ -60,6 +60,7 @@ endef all: $(ROMFS_HDR) $(ROMFS_DIRLIST) $(SYMTAB) .PHONY: all build clean install populate +.PRECIOUS: $(BIN) $(foreach DIR, $(SUBDIRS), $(eval $(call DIR_template,$(DIR),build, all))) $(foreach DIR, $(SUBDIRS), $(eval $(call DIR_template,$(DIR),clean,clean))) diff --git a/examples/poll/Makefile b/examples/poll/Makefile index 43540a5d4..ffc315c58 100644 --- a/examples/poll/Makefile +++ b/examples/poll/Makefile @@ -80,7 +80,8 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: clean depend distclean +.PHONY: clean depend distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -124,6 +125,6 @@ distclean: clean $(call DELFILE, host$(HOSTEXEEXT)) $(call DELFILE, *.dSYM) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/examples/posix_spawn/Makefile b/examples/posix_spawn/Makefile index 7d4c2e8d3..a37bffc0e 100644 --- a/examples/posix_spawn/Makefile +++ b/examples/posix_spawn/Makefile @@ -80,7 +80,8 @@ ROOTDEPPATH = --dep-path . --dep-path filesystem VPATH = filesystem all: build -.PHONY: build clean_filesystem clean depend distclean +.PHONY: build clean_filesystem clean depend distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -156,5 +157,5 @@ spawn_main.o: spawn_main.c \ symtab.o: filesystem/symtab.c \ $(TOPDIR)/include/nuttx/compiler.h \ $(TOPDIR)/include/nuttx/binfmt/symtab.h -.PHONY: preconfig + preconfig: diff --git a/examples/posix_spawn/filesystem/Makefile b/examples/posix_spawn/filesystem/Makefile index 35f5ee1df..819af11e8 100644 --- a/examples/posix_spawn/filesystem/Makefile +++ b/examples/posix_spawn/filesystem/Makefile @@ -45,6 +45,7 @@ SYMTAB_SRC = $(FILESYSTEM_DIR)$(DELIM)symtab.c all: $(ROMFS_HDR) $(SYMTAB_SRC) .PHONY: all hello/hello redirect/redirect clean populate +.PRECIOUS: $(BIN) # Create the romfs directory diff --git a/examples/posix_spawn/filesystem/hello/Makefile b/examples/posix_spawn/filesystem/hello/Makefile index 728f49904..6962129a1 100644 --- a/examples/posix_spawn/filesystem/hello/Makefile +++ b/examples/posix_spawn/filesystem/hello/Makefile @@ -42,6 +42,7 @@ OBJS = $(SRCS:.c=.o) all: $(BIN) .PHONY: clean install +.PRECIOUS: $(BIN) $(OBJS): %.o: %.c @echo "CC: $<" diff --git a/examples/posix_spawn/filesystem/redirect/Makefile b/examples/posix_spawn/filesystem/redirect/Makefile index fa1a9a818..70efeb117 100644 --- a/examples/posix_spawn/filesystem/redirect/Makefile +++ b/examples/posix_spawn/filesystem/redirect/Makefile @@ -42,6 +42,7 @@ OBJS = $(SRCS:.c=.o) all: $(BIN) .PHONY: clean install +.PRECIOUS: $(BIN) $(OBJS): %.o: %.c @echo "CC: $<" diff --git a/examples/romfs/Makefile b/examples/romfs/Makefile index baa56436c..1a9178324 100644 --- a/examples/romfs/Makefile +++ b/examples/romfs/Makefile @@ -86,7 +86,8 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: checkgenromfs clean depend distclean +.PHONY: checkgenromfs clean depend distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -151,7 +152,6 @@ distclean: clean $(call DELFILE, .depend) $(call DELFILE, testdir.img) --include Make.dep - -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/examples/sotest/Makefile b/examples/sotest/Makefile index f62fd900a..fab8da1e3 100644 --- a/examples/sotest/Makefile +++ b/examples/sotest/Makefile @@ -90,7 +90,8 @@ ROOTDEPPATH = --dep-path . --dep-path lib VPATH = lib all: .built -.PHONY: really_build clean_lib clean depend distclean +.PHONY: really_build clean_lib clean depend distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -152,6 +153,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/examples/sotest/lib/Makefile b/examples/sotest/lib/Makefile index f65edb743..eaa9f9b3d 100644 --- a/examples/sotest/lib/Makefile +++ b/examples/sotest/lib/Makefile @@ -59,6 +59,7 @@ endef all: $(ROMFS_HDR) $(DIRLIST_HDR) $(SYMTAB_SRC) .PHONY: all build clean install populate +.PRECIOUS: $(BIN) $(foreach DIR, $(BUILD_SUBDIRS), $(eval $(call DIR_template,$(DIR),build, all))) $(foreach DIR, $(ALL_SUBDIRS), $(eval $(call DIR_template,$(DIR),clean,clean))) diff --git a/examples/sotest/lib/modprint/Makefile b/examples/sotest/lib/modprint/Makefile index 30403e7f3..51f09e4d9 100644 --- a/examples/sotest/lib/modprint/Makefile +++ b/examples/sotest/lib/modprint/Makefile @@ -76,6 +76,7 @@ OBJS = $(SRCS:.c=$(OBJEXT)) all: $(BIN) .PHONY: clean install +.PRECIOUS: $(BIN) $(OBJS): %$(OBJEXT): %.c @echo "CC: $<" diff --git a/examples/sotest/lib/sotest/Makefile b/examples/sotest/lib/sotest/Makefile index 54cde4a4d..28b5a6424 100644 --- a/examples/sotest/lib/sotest/Makefile +++ b/examples/sotest/lib/sotest/Makefile @@ -76,6 +76,7 @@ OBJS = $(SRCS:.c=$(OBJEXT)) all: $(BIN) .PHONY: clean install +.PRECIOUS: $(BIN) $(OBJS): %$(OBJEXT): %.c @echo "CC: $<" diff --git a/examples/thttpd/Makefile b/examples/thttpd/Makefile index 1b1cafc1a..a11e95e0c 100644 --- a/examples/thttpd/Makefile +++ b/examples/thttpd/Makefile @@ -87,7 +87,8 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: headers clean depend distclean +.PHONY: headers clean depend distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -135,7 +136,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep - -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/examples/thttpd/content/hello/Makefile b/examples/thttpd/content/hello/Makefile index 046684981..de617ddac 100644 --- a/examples/thttpd/content/hello/Makefile +++ b/examples/thttpd/content/hello/Makefile @@ -45,6 +45,7 @@ R2OBJ = $(R2SRC:.S=.o) all: $(BIN) .PHONY: clean install +.PRECIOUS: $(BIN) $(R1OBJS): %.o: %.c @echo "CC: $<" diff --git a/examples/thttpd/content/tasks/Makefile b/examples/thttpd/content/tasks/Makefile index 0754b1ed4..d89d90ae3 100644 --- a/examples/thttpd/content/tasks/Makefile +++ b/examples/thttpd/content/tasks/Makefile @@ -48,6 +48,7 @@ R2OBJ = $(R2SRC:.S=.o) all: $(BIN) .PHONY: clean install +.PRECIOUS: $(BIN) $(R1OBJS): %.o: %.c @echo "CC: $<" diff --git a/examples/tiff/Makefile b/examples/tiff/Makefile index 9aa4efd0c..1a15acde7 100644 --- a/examples/tiff/Makefile +++ b/examples/tiff/Makefile @@ -86,7 +86,8 @@ STACKSIZE = 2048 VPATH = all: .built -.PHONY: clean depend distclean +.PHONY: clean depend distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -137,6 +138,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/examples/udgram/Makefile b/examples/udgram/Makefile index 09da3f620..7dd3e7cbc 100644 --- a/examples/udgram/Makefile +++ b/examples/udgram/Makefile @@ -115,7 +115,8 @@ endif VPATH = all: .built -.PHONY: clean depend distclean +.PHONY: clean depend distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -177,7 +178,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep - -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/examples/udp/Makefile b/examples/udp/Makefile index e75da5306..11803ecd8 100644 --- a/examples/udp/Makefile +++ b/examples/udp/Makefile @@ -161,6 +161,7 @@ VPATH = all: .built .PHONY: clean depend distclean preconfig +.PRECIOUS: $(BIN) $(TARG1_COBJS) $(TARG1_MAINOBJ) $(TARG2_COBJS) $(TARG2_MAINOBJ) $(TARGCMN_COBJS): %$(OBJEXT): %.c $(call COMPILE, $<, $@) diff --git a/examples/udpblaster/Makefile b/examples/udpblaster/Makefile index 469c2a212..e2c3fb03b 100644 --- a/examples/udpblaster/Makefile +++ b/examples/udpblaster/Makefile @@ -98,7 +98,8 @@ STACKSIZE = $(CONFIG_EXAMPLES_UDPBLASTER_STACKSIZE) VPATH = all: .built $(HOST_BIN) -.PHONY: clean depend distclean +.PHONY: clean depend distclean preconfig +.PRECIOUS: $(BIN) $(TARG_AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -168,7 +169,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep - -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/examples/unionfs/Makefile b/examples/unionfs/Makefile index 2bffcda91..d72a85111 100644 --- a/examples/unionfs/Makefile +++ b/examples/unionfs/Makefile @@ -86,7 +86,8 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: checkgenromfs clean depend distclean +.PHONY: checkgenromfs clean depend distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -155,7 +156,6 @@ distclean: clean $(call DELFILE, atestdir.img) $(call DELFILE, btestdir.img) --include Make.dep - -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/examples/usbserial/Makefile b/examples/usbserial/Makefile index 6fec07d81..a6629f818 100644 --- a/examples/usbserial/Makefile +++ b/examples/usbserial/Makefile @@ -84,7 +84,8 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: clean depend distclean +.PHONY: clean depend distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -133,7 +134,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep - -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/examples/ustream/Makefile b/examples/ustream/Makefile index 9d559ef62..dd6d036b7 100644 --- a/examples/ustream/Makefile +++ b/examples/ustream/Makefile @@ -107,7 +107,8 @@ endif VPATH = all: .built -.PHONY: clean depend distclean +.PHONY: clean depend distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -169,7 +170,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep - -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/examples/webserver/Makefile b/examples/webserver/Makefile index b4e77de3b..5f87e537d 100644 --- a/examples/webserver/Makefile +++ b/examples/webserver/Makefile @@ -86,7 +86,8 @@ STACKSIZE = 2048 VPATH = all: .built -.PHONY: clean depend distclean +.PHONY: clean depend distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -138,7 +139,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep - -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/fsutils/flash_eraseall/Makefile b/fsutils/flash_eraseall/Makefile index b7f6c2288..1c2ca2f1c 100644 --- a/fsutils/flash_eraseall/Makefile +++ b/fsutils/flash_eraseall/Makefile @@ -69,7 +69,8 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: context depend clean distclean +.PHONY: context depend clean distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/fsutils/inifile/Makefile b/fsutils/inifile/Makefile index a19fa902f..716f41c13 100644 --- a/fsutils/inifile/Makefile +++ b/fsutils/inifile/Makefile @@ -64,7 +64,8 @@ VPATH = # Build targets all: .built -.PHONY: context .depend depend clean distclean +.PHONY: context .depend depend clean distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -94,7 +95,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep - -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/fsutils/mksmartfs/Makefile b/fsutils/mksmartfs/Makefile index 6a8582ff5..577c58f1a 100644 --- a/fsutils/mksmartfs/Makefile +++ b/fsutils/mksmartfs/Makefile @@ -71,7 +71,8 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: context depend clean distclean +.PHONY: context depend clean distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -101,6 +102,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/fsutils/passwd/Makefile b/fsutils/passwd/Makefile index 13c2bd05c..8dc2109f8 100644 --- a/fsutils/passwd/Makefile +++ b/fsutils/passwd/Makefile @@ -77,7 +77,8 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: context depend clean distclean +.PHONY: context depend clean distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -107,6 +108,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/gpsutils/minmea/Makefile b/gpsutils/minmea/Makefile index 0a97cdbc8..9d25efbc6 100644 --- a/gpsutils/minmea/Makefile +++ b/gpsutils/minmea/Makefile @@ -66,7 +66,8 @@ VPATH = # Build targets all: .built -.PHONY: context .depend depend clean distclean +.PHONY: context .depend depend clean distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -96,6 +97,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/graphics/screenshot/Makefile b/graphics/screenshot/Makefile index 0cf2bdc0c..4b63a4133 100644 --- a/graphics/screenshot/Makefile +++ b/graphics/screenshot/Makefile @@ -86,7 +86,8 @@ STACKSIZE = 4096 VPATH = all: .built -.PHONY: clean depend distclean +.PHONY: clean depend distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -134,6 +135,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/graphics/tiff/Makefile b/graphics/tiff/Makefile index ee09e12bf..aad8a4ffe 100644 --- a/graphics/tiff/Makefile +++ b/graphics/tiff/Makefile @@ -65,7 +65,8 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: context clean depend distclean +.PHONY: context clean depend distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -95,6 +96,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/graphics/traveler/Makefile b/graphics/traveler/Makefile index 088757ea1..c74d53a58 100644 --- a/graphics/traveler/Makefile +++ b/graphics/traveler/Makefile @@ -117,7 +117,8 @@ VPATH = .:src # Common build all: .built tools -.PHONY: tools clean depend distclean +.PHONY: tools clean depend distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -178,6 +179,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/graphics/traveler/tools/include/Makefile b/graphics/traveler/tools/include/Makefile index ff06e8552..0b68e002f 100644 --- a/graphics/traveler/tools/include/Makefile +++ b/graphics/traveler/tools/include/Makefile @@ -45,6 +45,7 @@ all: nuttx default: all .PHONY: clean +.PRECIOUS: $(BIN) nuttx : $(NXINCNX) @cp -a $(NXINCNX) nuttx diff --git a/import/Makefile b/import/Makefile index d920251b8..b18bf7823 100644 --- a/import/Makefile +++ b/import/Makefile @@ -43,6 +43,7 @@ FILES = .config all: nothing .PHONY: nothing context depend clean distclean +.PRECIOUS: $(BIN) nothing: diff --git a/interpreters/bas/Makefile b/interpreters/bas/Makefile index f25b52521..ee04d64ab 100644 --- a/interpreters/bas/Makefile +++ b/interpreters/bas/Makefile @@ -78,7 +78,8 @@ STACKSIZE = $(CONFIG_INTERPRETER_BAS_STACKSIZE) # Build targets all: .built -.PHONY: context .depend depend clean distclean +.PHONY: context .depend depend clean distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -115,7 +116,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep -.PHONY: preconfig - preconfig: + +-include Make.dep diff --git a/interpreters/ficl/Makefile b/interpreters/ficl/Makefile index e99f39816..3ffa65110 100644 --- a/interpreters/ficl/Makefile +++ b/interpreters/ficl/Makefile @@ -79,6 +79,7 @@ VPATH = src:$(FICL_SUBDIR) all: .built .PHONY: debug context depend clean distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/interpreters/micropython/Makefile b/interpreters/micropython/Makefile index 48b78b044..8d521df33 100644 --- a/interpreters/micropython/Makefile +++ b/interpreters/micropython/Makefile @@ -127,7 +127,8 @@ ROOTDEPPATH = --dep-path . # Common build all: .built -.PHONY: install context clean distclean +.PHONY: install context clean distclean preconfig +.PRECIOUS: $(BIN) $(MICROPYTHON_TARBALL): @echo "Downloading: $(MICROPYTHON_TARBALL)" @@ -180,7 +181,7 @@ distclean: clean $(call DELFILE, .downloaded) $(call DELFILE, $(MICROPYTHON_TARBALL)) +preconfig: + -include $(MICROPYTHON_SRCDIR)/mkrules.mk -include Make.dep -.PHONY: preconfig -preconfig: diff --git a/interpreters/minibasic/Makefile b/interpreters/minibasic/Makefile index dfc79d68f..304de6bfd 100644 --- a/interpreters/minibasic/Makefile +++ b/interpreters/minibasic/Makefile @@ -73,7 +73,8 @@ STACKSIZE = $(CONFIG_INTERPRETER_MINIBASIC_STACKSIZE) # Build targets all: .built -.PHONY: context .depend depend clean distclean +.PHONY: context .depend depend clean distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -110,7 +111,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep -.PHONY: preconfig - preconfig: + +-include Make.dep diff --git a/modbus/Makefile b/modbus/Makefile index d032a36d4..2d7af8fca 100644 --- a/modbus/Makefile +++ b/modbus/Makefile @@ -82,7 +82,8 @@ endif # Build targets all: .built -.PHONY: context .depend depend clean distclean +.PHONY: context .depend depend clean distclean preconfig +.PRECIOUS: $(BIN) ifeq ($(CONFIG_MODBUS),y) @@ -119,8 +120,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) +preconfig: -include Make.dep - -.PHONY: preconfig -preconfig: diff --git a/netutils/chat/Makefile b/netutils/chat/Makefile index 475ee5f13..39eae033b 100644 --- a/netutils/chat/Makefile +++ b/netutils/chat/Makefile @@ -65,7 +65,8 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: context depend clean distclean +.PHONY: context depend clean distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -95,6 +96,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/netutils/codecs/Makefile b/netutils/codecs/Makefile index d75df86a7..6d01cfab2 100644 --- a/netutils/codecs/Makefile +++ b/netutils/codecs/Makefile @@ -63,7 +63,8 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: context depend clean distclean +.PHONY: context depend clean distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -93,6 +94,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/netutils/dhcpc/Makefile b/netutils/dhcpc/Makefile index 33ef5f49d..2bc6512d3 100644 --- a/netutils/dhcpc/Makefile +++ b/netutils/dhcpc/Makefile @@ -69,7 +69,8 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: context depend clean distclean +.PHONY: context depend clean distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -99,6 +100,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/netutils/dhcpd/Makefile b/netutils/dhcpd/Makefile index cd4ca87cd..b12678ce1 100644 --- a/netutils/dhcpd/Makefile +++ b/netutils/dhcpd/Makefile @@ -69,7 +69,8 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: context depend clean distclean +.PHONY: context depend clean distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -99,6 +100,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/netutils/discover/Makefile b/netutils/discover/Makefile index 69dc1e6c5..524fa8714 100644 --- a/netutils/discover/Makefile +++ b/netutils/discover/Makefile @@ -72,7 +72,8 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: context depend clean distclean +.PHONY: context depend clean distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -102,6 +103,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/netutils/esp8266/Makefile b/netutils/esp8266/Makefile index f9814c5ed..9b6d98c77 100644 --- a/netutils/esp8266/Makefile +++ b/netutils/esp8266/Makefile @@ -65,7 +65,8 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: context depend clean distclean +.PHONY: context depend clean distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -95,6 +96,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/netutils/ftpc/Makefile b/netutils/ftpc/Makefile index 18714156e..4a92fbc37 100644 --- a/netutils/ftpc/Makefile +++ b/netutils/ftpc/Makefile @@ -85,7 +85,8 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: context depend clean distclean +.PHONY: context depend clean distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -115,6 +116,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/netutils/ftpd/Makefile b/netutils/ftpd/Makefile index b1195f9d4..7a28db320 100644 --- a/netutils/ftpd/Makefile +++ b/netutils/ftpd/Makefile @@ -69,7 +69,8 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: context depend clean distclean +.PHONY: context depend clean distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -99,6 +100,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/netutils/json/Makefile b/netutils/json/Makefile index 1f38e3de8..5c7f38bd4 100644 --- a/netutils/json/Makefile +++ b/netutils/json/Makefile @@ -63,7 +63,8 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: context depend clean distclean +.PHONY: context depend clean distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -93,6 +94,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/netutils/netlib/Makefile b/netutils/netlib/Makefile index bef3af265..c6637f7b7 100644 --- a/netutils/netlib/Makefile +++ b/netutils/netlib/Makefile @@ -127,7 +127,8 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: context depend clean distclean +.PHONY: context depend clean distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -157,6 +158,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/netutils/ntpclient/Makefile b/netutils/ntpclient/Makefile index a141d0379..335b491f7 100755 --- a/netutils/ntpclient/Makefile +++ b/netutils/ntpclient/Makefile @@ -69,7 +69,8 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: context depend clean distclean +.PHONY: context depend clean distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -99,6 +100,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/netutils/ping/Makefile b/netutils/ping/Makefile index d35650eba..da7b61319 100644 --- a/netutils/ping/Makefile +++ b/netutils/ping/Makefile @@ -73,7 +73,8 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: context depend clean distclean +.PHONY: context depend clean distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -103,6 +104,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/netutils/pppd/Makefile b/netutils/pppd/Makefile index ca9eff13e..97fe5f766 100644 --- a/netutils/pppd/Makefile +++ b/netutils/pppd/Makefile @@ -68,7 +68,8 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: context depend clean distclean +.PHONY: context depend clean distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -98,6 +99,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/netutils/smtp/Makefile b/netutils/smtp/Makefile index 68db15d49..8a370a93c 100644 --- a/netutils/smtp/Makefile +++ b/netutils/smtp/Makefile @@ -69,7 +69,8 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: context depend clean distclean +.PHONY: context depend clean distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -99,6 +100,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/netutils/telnetc/Makefile b/netutils/telnetc/Makefile index 138fedc08..e12651c81 100644 --- a/netutils/telnetc/Makefile +++ b/netutils/telnetc/Makefile @@ -70,6 +70,7 @@ VPATH = all: .built .PHONY: context depend clean distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/netutils/telnetd/Makefile b/netutils/telnetd/Makefile index 8c79aae7c..779f57096 100644 --- a/netutils/telnetd/Makefile +++ b/netutils/telnetd/Makefile @@ -69,7 +69,8 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: context depend clean distclean +.PHONY: context depend clean distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -99,6 +100,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/netutils/tftpc/Makefile b/netutils/tftpc/Makefile index c65873da1..6553fe19c 100644 --- a/netutils/tftpc/Makefile +++ b/netutils/tftpc/Makefile @@ -71,7 +71,8 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: context depend clean distclean +.PHONY: context depend clean distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -101,6 +102,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/netutils/thttpd/Makefile b/netutils/thttpd/Makefile index 44583ed15..961d24186 100644 --- a/netutils/thttpd/Makefile +++ b/netutils/thttpd/Makefile @@ -110,7 +110,8 @@ PRIORITY = $(CONFIG_THTTPD_CGI_PRIORITY) STACKSIZE = $(CONFIG_THTTPD_CGI_STACKSIZE) all: $(SUBDIR_BIN) .built -.PHONY: context depend clean distclean +.PHONY: context depend clean distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -189,6 +190,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/netutils/webclient/Makefile b/netutils/webclient/Makefile index 3fe6c6458..02fbcb9b3 100644 --- a/netutils/webclient/Makefile +++ b/netutils/webclient/Makefile @@ -69,7 +69,8 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: context depend clean distclean +.PHONY: context depend clean distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -99,6 +100,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/netutils/webserver/Makefile b/netutils/webserver/Makefile index bca1a75ab..7561fb4a4 100644 --- a/netutils/webserver/Makefile +++ b/netutils/webserver/Makefile @@ -76,7 +76,8 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: context depend clean distclean +.PHONY: context depend clean distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -106,6 +107,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/netutils/xmlrpc/Makefile b/netutils/xmlrpc/Makefile index 51f28f884..a7658930a 100644 --- a/netutils/xmlrpc/Makefile +++ b/netutils/xmlrpc/Makefile @@ -70,7 +70,8 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: context depend clean distclean +.PHONY: context depend clean distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -100,6 +101,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/nshlib/Makefile b/nshlib/Makefile index 50adedf40..2cfc81582 100644 --- a/nshlib/Makefile +++ b/nshlib/Makefile @@ -159,7 +159,8 @@ VPATH = # Build targets all: .built -.PHONY: context .depend depend clean distclean +.PHONY: context .depend depend clean distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -189,7 +190,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep - -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/platform/Makefile b/platform/Makefile index cc85b4833..785cf8b0e 100644 --- a/platform/Makefile +++ b/platform/Makefile @@ -104,7 +104,8 @@ endif # Build targets all: .built -.PHONY: context .depend depend clean distclean +.PHONY: context .depend depend clean distclean preconfig +.PRECIOUS: $(BIN) ifneq ($(ASRCS),) # REVISIT: Backslash causes problems in $(AOBJS) target @@ -160,7 +161,6 @@ distclean: clean $(call DELFILE, .depend) $(Q) $(DIRUNLINK) $(PLATFORMDIR) --include Make.dep - -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/platform/bin/Makefile b/platform/bin/Makefile index 3f8b21f12..5a614880b 100644 --- a/platform/bin/Makefile +++ b/platform/bin/Makefile @@ -37,6 +37,7 @@ all: .PHONY: clean distclean +.PRECIOUS: $(BIN) # Clean Targets: diff --git a/system/cdcacm/Makefile b/system/cdcacm/Makefile index c0a5e6395..d8a09ca71 100644 --- a/system/cdcacm/Makefile +++ b/system/cdcacm/Makefile @@ -90,7 +90,8 @@ STACKSIZE2 = 2048 VPATH = all: .built -.PHONY: context clean depend distclean +.PHONY: context clean depend distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -141,7 +142,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep - -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/system/cle/Makefile b/system/cle/Makefile index 000db17f3..8a2a5d24f 100644 --- a/system/cle/Makefile +++ b/system/cle/Makefile @@ -65,7 +65,8 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: context depend clean distclean +.PHONY: context depend clean distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -97,7 +98,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep - -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/system/composite/Makefile b/system/composite/Makefile index 7d03bf75a..c5a3300e0 100644 --- a/system/composite/Makefile +++ b/system/composite/Makefile @@ -90,7 +90,8 @@ STACKSIZE2 = 2048 VPATH = all: .built -.PHONY: context clean depend distclean +.PHONY: context clean depend distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -141,7 +142,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep - -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/system/cu/Makefile b/system/cu/Makefile index 394e2a140..5de1ee306 100644 --- a/system/cu/Makefile +++ b/system/cu/Makefile @@ -89,7 +89,8 @@ STACKSIZE = $(CONFIG_SYSTEM_CUTERM_STACKSIZE) VPATH = all: .built -.PHONY: context clean depend distclean +.PHONY: context clean depend distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -137,7 +138,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep - -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/system/dhcpc/Makefile b/system/dhcpc/Makefile index 25c5bafde..1431cacde 100644 --- a/system/dhcpc/Makefile +++ b/system/dhcpc/Makefile @@ -89,7 +89,8 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: clean depend distclean +.PHONY: clean depend distclean preconfig +.PRECIOUS: $(BIN) $(RENEW_OBJS) $(RENEW_MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) @@ -134,6 +135,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/system/flash_eraseall/Makefile b/system/flash_eraseall/Makefile index c7aa2f73c..d05c04718 100644 --- a/system/flash_eraseall/Makefile +++ b/system/flash_eraseall/Makefile @@ -90,7 +90,7 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: preconfig context depend clean distclean +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/system/free/Makefile b/system/free/Makefile index 1cb8199e7..e75eeb39c 100644 --- a/system/free/Makefile +++ b/system/free/Makefile @@ -86,7 +86,8 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: context depend clean distclean +.PHONY: context depend clean distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -138,6 +139,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/system/hex2bin/Makefile b/system/hex2bin/Makefile index 4aea7d153..cb278e0d0 100644 --- a/system/hex2bin/Makefile +++ b/system/hex2bin/Makefile @@ -112,7 +112,8 @@ HEX2MEM_PRIORITY = $(CONFIG_SYSTEM_HEX2MEM_PRIORITY) # Build targets all: .built -.PHONY: context .depend depend clean distclean +.PHONY: context .depend depend clean distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -178,7 +179,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep - -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/system/hexed/Makefile b/system/hexed/Makefile index 6cc907d5b..43314ab56 100644 --- a/system/hexed/Makefile +++ b/system/hexed/Makefile @@ -89,7 +89,8 @@ ROOTDEPPATH = --dep-path src VPATH = src all: .built -.PHONY: context depend clean distclean +.PHONY: context depend clean distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -141,6 +142,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/system/i2c/Makefile b/system/i2c/Makefile index fe03441f2..12b750fd9 100644 --- a/system/i2c/Makefile +++ b/system/i2c/Makefile @@ -84,7 +84,8 @@ STACKSIZE = 2048 # Build targets all: .built -.PHONY: context .depend depend clean distclean +.PHONY: context .depend depend clean distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -132,7 +133,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep - -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/system/install/Makefile b/system/install/Makefile index 09700af3b..530667fab 100644 --- a/system/install/Makefile +++ b/system/install/Makefile @@ -90,7 +90,8 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: context depend clean distclean +.PHONY: context depend clean distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -142,6 +143,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/system/lm75/Makefile b/system/lm75/Makefile index 5ac2a238d..cd8b2a10d 100644 --- a/system/lm75/Makefile +++ b/system/lm75/Makefile @@ -90,7 +90,8 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: context depend clean distclean +.PHONY: context depend clean distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -142,6 +143,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/system/mdio/Makefile b/system/mdio/Makefile index db2a01baf..d412371bf 100644 --- a/system/mdio/Makefile +++ b/system/mdio/Makefile @@ -86,7 +86,8 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: clean depend distclean +.PHONY: clean depend distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -134,6 +135,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/system/netdb/Makefile b/system/netdb/Makefile index 40553e010..5ae0db6f3 100644 --- a/system/netdb/Makefile +++ b/system/netdb/Makefile @@ -71,7 +71,8 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: context depend clean distclean +.PHONY: context depend clean distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -112,6 +113,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/system/ntpc/Makefile b/system/ntpc/Makefile index f30857d41..8d71ea09e 100644 --- a/system/ntpc/Makefile +++ b/system/ntpc/Makefile @@ -94,7 +94,8 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: clean depend distclean +.PHONY: clean depend distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -150,6 +151,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/system/nxplayer/Makefile b/system/nxplayer/Makefile index 6872f857e..c0f8f5707 100644 --- a/system/nxplayer/Makefile +++ b/system/nxplayer/Makefile @@ -95,7 +95,8 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: context depend clean distclean +.PHONY: context depend clean distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -151,6 +152,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/system/prun/Makefile b/system/prun/Makefile index 88f800f97..9d864e86c 100644 --- a/system/prun/Makefile +++ b/system/prun/Makefile @@ -96,7 +96,8 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: clean depend distclean +.PHONY: clean depend distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -148,6 +149,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/system/ramtest/Makefile b/system/ramtest/Makefile index bdace6b1a..54bcfc1a1 100644 --- a/system/ramtest/Makefile +++ b/system/ramtest/Makefile @@ -87,7 +87,8 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: context depend clean distclean +.PHONY: context depend clean distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -139,6 +140,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/system/readline/Makefile b/system/readline/Makefile index 993387524..e8cc717dd 100644 --- a/system/readline/Makefile +++ b/system/readline/Makefile @@ -65,7 +65,8 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: context depend clean distclean +.PHONY: context depend clean distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -101,6 +102,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/system/stackmonitor/Makefile b/system/stackmonitor/Makefile index 88a390fca..ee44a8fb2 100644 --- a/system/stackmonitor/Makefile +++ b/system/stackmonitor/Makefile @@ -83,7 +83,8 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: context depend clean distclean +.PHONY: context depend clean distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -139,6 +140,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/system/sudoku/Makefile b/system/sudoku/Makefile index 6603059ce..d332a6a37 100644 --- a/system/sudoku/Makefile +++ b/system/sudoku/Makefile @@ -86,7 +86,8 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: context depend clean distclean +.PHONY: context depend clean distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -138,6 +139,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/system/symtab/Makefile b/system/symtab/Makefile index 4589bc4f8..b155097af 100644 --- a/system/symtab/Makefile +++ b/system/symtab/Makefile @@ -65,7 +65,8 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: context depend clean distclean +.PHONY: context depend clean distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -97,6 +98,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/system/tee/Makefile b/system/tee/Makefile index e73bbcb65..d531adca5 100644 --- a/system/tee/Makefile +++ b/system/tee/Makefile @@ -89,7 +89,8 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: context depend clean distclean +.PHONY: context depend clean distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -141,6 +142,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/system/telnet/Makefile b/system/telnet/Makefile index 0ff663985..c4f6b3d0b 100644 --- a/system/telnet/Makefile +++ b/system/telnet/Makefile @@ -120,6 +120,7 @@ VPATH = all: .built .PHONY: clean depend distclean preconfig +.PRECIOUS: $(BIN) $(CHATD_COBJS) $(CHATD_MAINOBJ) $(CLIENT_COBJS) $(CLIENT_MAINOBJ) : %$(OBJEXT): %.c $(call COMPILE, $<, $@) diff --git a/system/ubloxmodem/Makefile b/system/ubloxmodem/Makefile index 5d057e70d..1187945a0 100644 --- a/system/ubloxmodem/Makefile +++ b/system/ubloxmodem/Makefile @@ -83,7 +83,8 @@ STACKSIZE = 2048 # Build targets all: .built -.PHONY: context .depend depend clean distclean +.PHONY: context .depend depend clean distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -131,6 +132,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/system/usbmsc/Makefile b/system/usbmsc/Makefile index 1c9e89839..1998c65fd 100644 --- a/system/usbmsc/Makefile +++ b/system/usbmsc/Makefile @@ -93,7 +93,8 @@ STACKSIZE2 = $(CONFIG_SYSTEM_USBMSC_CMD_STACKSIZE) VPATH = all: .built -.PHONY: context clean depend distclean +.PHONY: context clean depend distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -144,7 +145,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep - -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/system/vi/Makefile b/system/vi/Makefile index 467f8b791..46b2b9e4e 100644 --- a/system/vi/Makefile +++ b/system/vi/Makefile @@ -87,7 +87,8 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: context depend clean distclean +.PHONY: context depend clean distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -139,6 +140,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/system/zmodem/Makefile b/system/zmodem/Makefile index d03868527..ab2f6b2dd 100644 --- a/system/zmodem/Makefile +++ b/system/zmodem/Makefile @@ -90,7 +90,8 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: context depend clean distclean +.PHONY: context depend clean distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -150,6 +151,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/wireless/ieee802154/Makefile b/wireless/ieee802154/Makefile index 289ab6aed..27402828f 100644 --- a/wireless/ieee802154/Makefile +++ b/wireless/ieee802154/Makefile @@ -41,7 +41,8 @@ SUBDIRS = $(dir $(wildcard */Makefile)) all: nothing -.PHONY: nothing context depend clean distclean +.PHONY: nothing context depend clean distclean preconfig +.PRECIOUS: $(BIN) define SDIR_template $(1)_$(2): @@ -65,7 +66,6 @@ clean: $(foreach SDIR, $(SUBDIRS), $(SDIR)_clean) distclean: $(foreach SDIR, $(SUBDIRS), $(SDIR)_distclean) --include Make.dep + preconfig: -.PHONY: preconfig -preconfig: +-include Make.dep diff --git a/wireless/ieee802154/i8sak/Makefile b/wireless/ieee802154/i8sak/Makefile index 572b96870..4b60962e4 100644 --- a/wireless/ieee802154/i8sak/Makefile +++ b/wireless/ieee802154/i8sak/Makefile @@ -91,6 +91,7 @@ VPATH = all: .built .PHONY: clean depend distclean +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/wireless/ieee802154/libmac/Makefile b/wireless/ieee802154/libmac/Makefile index 11014cfc3..66e60a93f 100644 --- a/wireless/ieee802154/libmac/Makefile +++ b/wireless/ieee802154/libmac/Makefile @@ -99,6 +99,7 @@ VPATH = all: .built .PHONY: context .depend depend clean distclean +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/wireless/ieee802154/libutils/Makefile b/wireless/ieee802154/libutils/Makefile index 3fb9ee95d..1767775b7 100644 --- a/wireless/ieee802154/libutils/Makefile +++ b/wireless/ieee802154/libutils/Makefile @@ -65,6 +65,7 @@ VPATH = all: .built .PHONY: context .depend depend clean distclean +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/wireless/ieee802154/wpanlistener/Makefile b/wireless/ieee802154/wpanlistener/Makefile index 5bba310dd..7e1d70cfb 100644 --- a/wireless/ieee802154/wpanlistener/Makefile +++ b/wireless/ieee802154/wpanlistener/Makefile @@ -66,6 +66,7 @@ VPATH = all: .built .PHONY: context .depend depend clean distclean +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/wireless/iwpan/Makefile b/wireless/iwpan/Makefile index 68f1fe039..efc6a262e 100644 --- a/wireless/iwpan/Makefile +++ b/wireless/iwpan/Makefile @@ -93,7 +93,8 @@ ROOTDEPPATH = --dep-path . # Common build all: .built -.PHONY: context depend clean distclean +.PHONY: context depend clean distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -145,6 +146,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep diff --git a/wireless/wapi/Makefile b/wireless/wapi/Makefile index c32d89fc6..dec217788 100644 --- a/wireless/wapi/Makefile +++ b/wireless/wapi/Makefile @@ -91,7 +91,8 @@ PROGNAME = $(CONFIG_WAPI_PROGNAME) # Common build all: .built -.PHONY: context depend clean distclean +.PHONY: context depend clean distclean preconfig +.PRECIOUS: $(BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -143,6 +144,6 @@ distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) --include Make.dep -.PHONY: preconfig preconfig: + +-include Make.dep