hartmannathan commented on code in PR #1407: URL: https://github.com/apache/incubator-nuttx-apps/pull/1407#discussion_r1029335200
########## Make.defs: ########## @@ -21,27 +21,22 @@ TOPDIR ?= $(APPDIR)/import include $(TOPDIR)/Make.defs -# The GNU make CURDIR will always be a POSIX-like path with forward slashes -# as path segment separators. This is fine for the above inclusions but -# will cause problems later for the native build. If we know that this is -# a native build, then we need to fix up the APPDIR path for subsequent -# use - -ifeq ($(CONFIG_WINDOWS_NATIVE),y) -APPDIR := ${shell echo %CD%} -endif - # Application Directories # BUILDIRS is the list of top-level directories containing Make.defs files # CLEANDIRS is the list of all top-level directories containing Makefiles. # It is used only for cleaning. -BUILDIRS := $(dir $(wildcard $(APPDIR)$(DELIM)*$(DELIM)Make.defs)) -BUILDIRS := $(filter-out $(APPDIR)$(DELIM)import$(DELIM),$(BUILDIRS)) -CONFIGDIRS := $(filter-out $(APPDIR)$(DELIM)builtin$(DELIM),$(BUILDIRS)) -CONFIGDIRS := $(filter-out $(dir $(wildcard $(APPDIR)$(DELIM)*$(DELIM)Kconfig)),$(CONFIGDIRS)) Review Comment: I think the reason for `$(DELIM)` is that paths on Windows use `\` and paths on Unix use `/`. I'm not sure what problem the OP had with `$(DELIM)` but I wonder, could it be the choice of parenthesis? What's the difference between writing `$(DELIM)` or writing `${DELIM}`? -- 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: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org