From 9a27d4a697e1da078e9c648780931ae981ff3651 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Tue, 1 Oct 2019 11:48:55 -0600 Subject: [PATCH] Makefiles: Remove .PRECIOUS if Makefile doesn't touch libapps. --- builtin/registry/Makefile | 1 - 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/module/drivers/Makefile | 1 - examples/module/drivers/chardev/Makefile | 1 - examples/nxflat/tests/Makefile | 1 - examples/posix_spawn/filesystem/Makefile | 1 - examples/posix_spawn/filesystem/hello/Makefile | 1 - examples/posix_spawn/filesystem/redirect/Makefile | 1 - examples/sotest/lib/Makefile | 1 - examples/sotest/lib/modprint/Makefile | 1 - examples/sotest/lib/sotest/Makefile | 1 - examples/thttpd/content/hello/Makefile | 1 - examples/thttpd/content/tasks/Makefile | 1 - graphics/traveler/tools/include/Makefile | 1 - platform/bin/Makefile | 1 - wireless/bluetooth/Makefile | 1 - wireless/ieee802154/Makefile | 1 - 26 files changed, 26 deletions(-) diff --git a/builtin/registry/Makefile b/builtin/registry/Makefile index 5365dd0cc..255e55206 100644 --- a/builtin/registry/Makefile +++ b/builtin/registry/Makefile @@ -40,7 +40,6 @@ include $(APPDIR)/Make.defs all: .PHONY: context depend clean distclean -.PRECIOUS: ../../libapps$(LIBEXT) .updated: $(DEPCONFIG) $(call DELFILE, *.bdat) diff --git a/examples/elf/tests/Makefile b/examples/elf/tests/Makefile index 57e13a95b..561092497 100644 --- a/examples/elf/tests/Makefile +++ b/examples/elf/tests/Makefile @@ -83,7 +83,6 @@ endef all: $(FSIMG_HDR) $(DIRLIST_HDR) $(SYMTAB_SRC) .PHONY: all build clean install populate -.PRECIOUS: ../../../libapps$(LIBEXT) $(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 d2b35447e..ecac55f51 100644 --- a/examples/elf/tests/errno/Makefile +++ b/examples/elf/tests/errno/Makefile @@ -73,7 +73,6 @@ OBJS = $(SRCS:.c=$(OBJEXT)) all: $(BIN) .PHONY: clean install -.PRECIOUS: ../../../../libapps$(LIBEXT) $(OBJS): %$(OBJEXT): %.c @echo "CC: $<" diff --git a/examples/elf/tests/hello/Makefile b/examples/elf/tests/hello/Makefile index ea1e91f3e..abee21907 100644 --- a/examples/elf/tests/hello/Makefile +++ b/examples/elf/tests/hello/Makefile @@ -73,7 +73,6 @@ OBJS = $(SRCS:.c=$(OBJEXT)) all: $(BIN) .PHONY: clean install -.PRECIOUS: ../../../../libapps$(LIBEXT) $(OBJS): %$(OBJEXT): %.c @echo "CC: $<" diff --git a/examples/elf/tests/helloxx/Makefile b/examples/elf/tests/helloxx/Makefile index a1b434215..24a380cb9 100644 --- a/examples/elf/tests/helloxx/Makefile +++ b/examples/elf/tests/helloxx/Makefile @@ -102,7 +102,6 @@ LDLIBSTDC_STUBS_LIB = $(LDLIBSTDC_STUBS_DIR)/liblibxx.a all: $(BIN1) $(BIN2) $(BIN3) $(BIN4) $(BIN5) .PHONY: clean install -.PRECIOUS: ../../../../libapps$(LIBEXT) $(OBJS): %$(OBJEXT): %.cpp @echo "CC: $<" diff --git a/examples/elf/tests/longjmp/Makefile b/examples/elf/tests/longjmp/Makefile index a5b1f509c..c15ef4a58 100644 --- a/examples/elf/tests/longjmp/Makefile +++ b/examples/elf/tests/longjmp/Makefile @@ -73,7 +73,6 @@ OBJS = $(SRCS:.c=$(OBJEXT)) all: $(BIN) .PHONY: clean install -.PRECIOUS: ../../../../libapps$(LIBEXT) $(OBJS): %$(OBJEXT): %.c @echo "CC: $<" diff --git a/examples/elf/tests/mutex/Makefile b/examples/elf/tests/mutex/Makefile index 23d2013e1..53bf2ac5f 100644 --- a/examples/elf/tests/mutex/Makefile +++ b/examples/elf/tests/mutex/Makefile @@ -73,7 +73,6 @@ OBJS = $(SRCS:.c=$(OBJEXT)) all: $(BIN) .PHONY: clean install -.PRECIOUS: ../../../../libapps$(LIBEXT) $(OBJS): %$(OBJEXT): %.c @echo "CC: $<" diff --git a/examples/elf/tests/pthread/Makefile b/examples/elf/tests/pthread/Makefile index bef38217b..26aa9f944 100644 --- a/examples/elf/tests/pthread/Makefile +++ b/examples/elf/tests/pthread/Makefile @@ -73,7 +73,6 @@ OBJS = $(SRCS:.c=$(OBJEXT)) all: $(BIN) .PHONY: clean install -.PRECIOUS: ../../../../libapps$(LIBEXT) $(OBJS): %$(OBJEXT): %.c @echo "CC: $<" diff --git a/examples/elf/tests/signal/Makefile b/examples/elf/tests/signal/Makefile index c770e89bc..e582c3220 100644 --- a/examples/elf/tests/signal/Makefile +++ b/examples/elf/tests/signal/Makefile @@ -73,7 +73,6 @@ OBJS = $(SRCS:.c=$(OBJEXT)) all: $(BIN) .PHONY: clean install -.PRECIOUS: ../../../../libapps$(LIBEXT) $(OBJS): %$(OBJEXT): %.c @echo "CC: $<" diff --git a/examples/elf/tests/struct/Makefile b/examples/elf/tests/struct/Makefile index fa9ec3d50..cdf32c0eb 100644 --- a/examples/elf/tests/struct/Makefile +++ b/examples/elf/tests/struct/Makefile @@ -74,7 +74,6 @@ OBJS = $(SRCS:.c=$(OBJEXT)) all: $(BIN) .PHONY: clean install -.PRECIOUS: ../../../../libapps$(LIBEXT) $(OBJS): %$(OBJEXT): %.c @echo "CC: $<" diff --git a/examples/elf/tests/task/Makefile b/examples/elf/tests/task/Makefile index 3791ad144..c46a251ef 100644 --- a/examples/elf/tests/task/Makefile +++ b/examples/elf/tests/task/Makefile @@ -73,7 +73,6 @@ OBJS = $(SRCS:.c=$(OBJEXT)) all: $(BIN) .PHONY: clean install -.PRECIOUS: ../../../../libapps$(LIBEXT) $(OBJS): %$(OBJEXT): %.c @echo "CC: $<" diff --git a/examples/module/drivers/Makefile b/examples/module/drivers/Makefile index dfc497027..6dd4b9375 100644 --- a/examples/module/drivers/Makefile +++ b/examples/module/drivers/Makefile @@ -65,7 +65,6 @@ endef all: $(FSIMG_HDR) $(DIRLIST_HDR) $(SYMTAB_SRC) $(PASS1_SYMTAB) .PHONY: all build clean install populate -.PRECIOUS: ../../../libapps$(LIBEXT) $(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 07aebb1b6..e7ceaba49 100644 --- a/examples/module/drivers/chardev/Makefile +++ b/examples/module/drivers/chardev/Makefile @@ -79,7 +79,6 @@ OBJS = $(SRCS:.c=$(OBJEXT)) all: $(BIN) .PHONY: clean install -.PRECIOUS: ../../../../libapps$(LIBEXT) $(OBJS): %$(OBJEXT): %.c @echo "CC: $<" diff --git a/examples/nxflat/tests/Makefile b/examples/nxflat/tests/Makefile index 4e2334088..265ac27c1 100644 --- a/examples/nxflat/tests/Makefile +++ b/examples/nxflat/tests/Makefile @@ -60,7 +60,6 @@ endef all: $(ROMFS_HDR) $(ROMFS_DIRLIST) $(SYMTAB) .PHONY: all build clean install populate -.PRECIOUS: ../../../libapps$(LIBEXT) $(foreach DIR, $(SUBDIRS), $(eval $(call DIR_template,$(DIR),build, all))) $(foreach DIR, $(SUBDIRS), $(eval $(call DIR_template,$(DIR),clean,clean))) diff --git a/examples/posix_spawn/filesystem/Makefile b/examples/posix_spawn/filesystem/Makefile index 0967242b5..2efc1fed8 100644 --- a/examples/posix_spawn/filesystem/Makefile +++ b/examples/posix_spawn/filesystem/Makefile @@ -45,7 +45,6 @@ SYMTAB_SRC = $(FILESYSTEM_DIR)$(DELIM)symtab.c all: $(ROMFS_HDR) $(SYMTAB_SRC) .PHONY: all hello/hello redirect/redirect clean populate -.PRECIOUS: ../../../libapps$(LIBEXT) # Create the romfs directory diff --git a/examples/posix_spawn/filesystem/hello/Makefile b/examples/posix_spawn/filesystem/hello/Makefile index a8f1d6a34..728f49904 100644 --- a/examples/posix_spawn/filesystem/hello/Makefile +++ b/examples/posix_spawn/filesystem/hello/Makefile @@ -42,7 +42,6 @@ OBJS = $(SRCS:.c=.o) all: $(BIN) .PHONY: clean install -.PRECIOUS: ../../../../libapps$(LIBEXT) $(OBJS): %.o: %.c @echo "CC: $<" diff --git a/examples/posix_spawn/filesystem/redirect/Makefile b/examples/posix_spawn/filesystem/redirect/Makefile index 0658a8bd6..fa1a9a818 100644 --- a/examples/posix_spawn/filesystem/redirect/Makefile +++ b/examples/posix_spawn/filesystem/redirect/Makefile @@ -42,7 +42,6 @@ OBJS = $(SRCS:.c=.o) all: $(BIN) .PHONY: clean install -.PRECIOUS: ../../../../libapps$(LIBEXT) $(OBJS): %.o: %.c @echo "CC: $<" diff --git a/examples/sotest/lib/Makefile b/examples/sotest/lib/Makefile index c36287963..f65edb743 100644 --- a/examples/sotest/lib/Makefile +++ b/examples/sotest/lib/Makefile @@ -59,7 +59,6 @@ endef all: $(ROMFS_HDR) $(DIRLIST_HDR) $(SYMTAB_SRC) .PHONY: all build clean install populate -.PRECIOUS: ../../../libapps$(LIBEXT) $(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 8723b84d4..d7a6f6977 100644 --- a/examples/sotest/lib/modprint/Makefile +++ b/examples/sotest/lib/modprint/Makefile @@ -79,7 +79,6 @@ OBJS = $(SRCS:.c=$(OBJEXT)) all: $(BIN) .PHONY: clean install -.PRECIOUS: ../../../../libapps$(LIBEXT) $(OBJS): %$(OBJEXT): %.c @echo "CC: $<" diff --git a/examples/sotest/lib/sotest/Makefile b/examples/sotest/lib/sotest/Makefile index 78180b7dd..89972d561 100644 --- a/examples/sotest/lib/sotest/Makefile +++ b/examples/sotest/lib/sotest/Makefile @@ -79,7 +79,6 @@ OBJS = $(SRCS:.c=$(OBJEXT)) all: $(BIN) .PHONY: clean install -.PRECIOUS: ../../../../libapps$(LIBEXT) $(OBJS): %$(OBJEXT): %.c @echo "CC: $<" diff --git a/examples/thttpd/content/hello/Makefile b/examples/thttpd/content/hello/Makefile index 100827f27..046684981 100644 --- a/examples/thttpd/content/hello/Makefile +++ b/examples/thttpd/content/hello/Makefile @@ -45,7 +45,6 @@ R2OBJ = $(R2SRC:.S=.o) all: $(BIN) .PHONY: clean install -.PRECIOUS: ../../../../libapps$(LIBEXT) $(R1OBJS): %.o: %.c @echo "CC: $<" diff --git a/examples/thttpd/content/tasks/Makefile b/examples/thttpd/content/tasks/Makefile index 7ab8d64db..0754b1ed4 100644 --- a/examples/thttpd/content/tasks/Makefile +++ b/examples/thttpd/content/tasks/Makefile @@ -48,7 +48,6 @@ R2OBJ = $(R2SRC:.S=.o) all: $(BIN) .PHONY: clean install -.PRECIOUS: ../../../../libapps$(LIBEXT) $(R1OBJS): %.o: %.c @echo "CC: $<" diff --git a/graphics/traveler/tools/include/Makefile b/graphics/traveler/tools/include/Makefile index 4ce597831..ff06e8552 100644 --- a/graphics/traveler/tools/include/Makefile +++ b/graphics/traveler/tools/include/Makefile @@ -45,7 +45,6 @@ all: nuttx default: all .PHONY: clean -.PRECIOUS: ../../../../libapps$(LIBEXT) nuttx : $(NXINCNX) @cp -a $(NXINCNX) nuttx diff --git a/platform/bin/Makefile b/platform/bin/Makefile index ba4a82873..3f8b21f12 100644 --- a/platform/bin/Makefile +++ b/platform/bin/Makefile @@ -37,7 +37,6 @@ all: .PHONY: clean distclean -.PRECIOUS: ../../libapps$(LIBEXT) # Clean Targets: diff --git a/wireless/bluetooth/Makefile b/wireless/bluetooth/Makefile index 256d9e0c4..ad5b85ead 100644 --- a/wireless/bluetooth/Makefile +++ b/wireless/bluetooth/Makefile @@ -42,7 +42,6 @@ SUBDIRS = $(dir $(wildcard */Makefile)) all: nothing .PHONY: nothing context depend clean distclean preconfig -.PRECIOUS: ../../libapps$(LIBEXT) define SDIR_template $(1)_$(2): diff --git a/wireless/ieee802154/Makefile b/wireless/ieee802154/Makefile index 500938ccc..3e31d5ac1 100644 --- a/wireless/ieee802154/Makefile +++ b/wireless/ieee802154/Makefile @@ -42,7 +42,6 @@ SUBDIRS = $(dir $(wildcard */Makefile)) all: nothing .PHONY: nothing context depend clean distclean preconfig -.PRECIOUS: ../../libapps$(LIBEXT) define SDIR_template $(1)_$(2):