The last change added .PRECIOUS: $(BIN) to everyway Makefile in hopes the libapps.a will not be deleted on Control-C (unproven so far). However, $(BIN) may contain back slashes in some build platforms and that causes problems for make: It can't handle the backslashes in the .PRECIOUS dependency list. $(BIN) replaced with ../../libapp.a, where the number of ../ depends on the depth of the Makefile in the apps/ source tree.

This commit is contained in:
Gregory Nutt 2017-08-13 11:03:17 -06:00
parent a66da34f18
commit 7a8561728c
123 changed files with 123 additions and 125 deletions

View file

@ -105,7 +105,7 @@ endif
all: .built
.PHONY: context .depend depend clean distclean preconfig
.PRECIOUS: $(BIN)
.PRECIOUS: ../libapps$(LIBEXT)
ifneq ($(ASRCS),)
# REVISIT: Backslash causes problems in $(AOBJS) target

View file

@ -37,7 +37,7 @@
all:
.PHONY: clean distclean
.PRECIOUS: $(BIN)
.PRECIOUS: ../../libapps$(LIBEXT)
# Clean Targets: