gustavonihei commented on a change in pull request #5055:
URL: https://github.com/apache/incubator-nuttx/pull/5055#discussion_r773770591
##########
File path: tools/Makefile.win
##########
@@ -315,9 +315,36 @@ dirlinks: include\arch include\arch\board
include\arch\chip $(ARCH_SRC)\board $(
# the config.h and version.h header files in the include\nuttx directory and
# the establishment of symbolic links to configured directories.
-context: include\nuttx\config.h include\nuttx\version.h include\math.h
include\float.h include\stdarg.h include\setjmp.h dirlinks
- $(Q) mkdir -p staging
- $(Q) for %%G in ($(CONTEXTDIRS)) do ( $(MAKE) -C %%G context )
+# Generate a pattern to make Directories.mk context
+
+CONTEXTDIRS_DEPS = $(patsubst %,%\.context,$(CONTEXTDIRS))
+
+context: include\nuttx\config.h include\nuttx\version.h $(CONTEXTDIRS_DEPS)
dirlinks | staging
+
+staging:
+ $(Q) mkdir -p $@
+
+# Pattern rule for $(CONTEXTDIRS_DEPS)
+
+%.context: include\nuttx\config.h dirlinks
+ $(MAKE) -C $(patsubst %.context,%,$@) TOPDIR="$(TOPDIR)" context
Review comment:
```suggestion
$(Q) $(MAKE) -C $(patsubst %.context,%,$@) TOPDIR="$(TOPDIR)" context
```
Missing silent flag in `make` command
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]