From a5e4508a958448ad3cb1c88e7436c52a3c32ca5a Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 31 May 2018 14:46:28 -0600 Subject: [PATCH] Makefile: The clean_context target needs to invoke a corresponding clean_context target in the apps/Makefile in order to remove linkages --- README.txt | 18 ++++++++++++++++-- tools/Makefile.unix | 1 + tools/Makefile.win | 2 ++ 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/README.txt b/README.txt index 888dc92f1a..c24fba23f2 100644 --- a/README.txt +++ b/README.txt @@ -76,8 +76,9 @@ ENVIRONMENTS simplified and adapted to work more naturally in the Windows environment. See http://www.mingw.org/wiki/MSYS if you are interested in using MSYS. The advantages of the MSYS environment is - that it is closer to a native Windows environment and uses only a - minimal number of add-on POSIX-land tools. + that it is better integrted with the native Windows environment and + lighter weight; it uses only a minimal number of add-on POSIX-land + tools. The download link in that Wiki takes you to the SourceForge download site. The SourceForge MSYS project has been stagnant for some time. @@ -205,6 +206,19 @@ Using MSYS pacman -S zlib-devel + It appears that you cannot use directory names with spaces in them like + "/c/Program\ Files \(86\)" in the MSYS path variable. I worked around this + by create Windows junctions like this:: + + 1. Open the a windows command terminal, + 2. CD to c:\msys64, then + 3. mklink /j programfiles "C:/Program\ Files" and + 4. mklink /j programfiles86 "C:/Program\ Files\ \(x86\)" + + Then using those names in the PATH variable. I had to do something similar + for the path to the GNU Tools ARM Embedded toolchain which also has spaces + in the path name. + Ubuntu Bash under Windows 10 ---------------------------- diff --git a/tools/Makefile.unix b/tools/Makefile.unix index 01ae245fa4..6bc134766f 100644 --- a/tools/Makefile.unix +++ b/tools/Makefile.unix @@ -353,6 +353,7 @@ context: check_context staging include/nuttx/config.h include/nuttx/version.h in clean_context: $(Q) $(MAKE) -C configs TOPDIR="$(TOPDIR)" clean_context + $(Q) $(MAKE) -C $(CONFIG_APPS_DIR) TOPDIR="$(TOPDIR)" clean_context $(call DELFILE, include/nuttx/config.h) $(call DELFILE, include/nuttx/version.h) $(call DELFILE, include/math.h) diff --git a/tools/Makefile.win b/tools/Makefile.win index 0c321feb1a..1ba0887a77 100644 --- a/tools/Makefile.win +++ b/tools/Makefile.win @@ -370,6 +370,8 @@ context: check_context staging include\nuttx\config.h include\nuttx\version.h in # and symbolic links created by the context target. clean_context: + $(Q) $(MAKE) -C configs TOPDIR="$(TOPDIR)" clean_context + $(Q) $(MAKE) -C $(CONFIG_APPS_DIR) TOPDIR="$(TOPDIR)" clean_context $(call DELFILE, include\nuttx\config.h) $(call DELFILE, include\nuttx\version.h) $(call DELFILE, include\math.h)