From c64ede319ce1dfc992d030a8c21e7262a5533a27 Mon Sep 17 00:00:00 2001 From: Chao An Date: Wed, 12 Sep 2018 06:09:20 -0600 Subject: [PATCH] apps/Applicatin.mk: Fixe some build issues. (1) Unable to found target 'context' when CONFIG_NSH_BUILTIN_APPS disabled. (2) Unable to generate multiple programs. --- Application.mk | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Application.mk b/Application.mk index aac853638..c221d8d21 100644 --- a/Application.mk +++ b/Application.mk @@ -98,7 +98,7 @@ VPATH += :. # Targets follow all:: .built -.PHONY: .proglist clean preconfig depend distclean +.PHONY: clean preconfig depend distclean .PRECIOUS: $(APPDIR)/libapps$(LIBEXT) ifneq ($(CONFIG_BUILD_LOADABLE),y) @@ -186,18 +186,18 @@ endif PROGLIST := $(addprefix $(PROGPRFX),$(PROGNAME)) PROGOBJ := $(MAINOBJ) -.proglist: $(MAINOBJ) $(OBJS) +$(PROGLIST): $(MAINOBJ) $(OBJS) ifneq ($(PROGOBJ),) $(Q) $(LD) $(LDELFFLAGS) $(LDLIBPATH) $(ARCHCRT0OBJ) $(firstword $(PROGOBJ)) $(LDLIBS) -o $(strip $(firstword $(PROGLIST)))_ $(Q) $(NM) -u $(strip $(firstword $(PROGLIST)))_ $(Q) install -m 0755 -D $(strip $(firstword $(PROGLIST)))_ $(firstword $(PROGLIST)) $(call DELFILE, $(strip $(firstword $(PROGLIST)))_) -# $(Q) $(STRIP) $(BIN_DIR)/$(firstword $(PROGLIST) +# $(Q) $(STRIP) $(firstword $(PROGLIST)) $(eval PROGLIST=$(filter-out $(firstword $(PROGLIST)),$(PROGLIST))) $(eval PROGOBJ=$(filter-out $(firstword $(PROGOBJ)),$(PROGOBJ))) endif -install:: .proglist +install:: $(PROGLIST) else install:: @@ -233,6 +233,8 @@ endif else context:: endif +else +context:: endif .depend: Makefile $(SRCS)