patacongo commented on a change in pull request #2: Master pr nxstyle
improvments
URL: https://github.com/apache/incubator-nuttx/pull/2#discussion_r360727266
##########
File path: tools/Makefile.unix
##########
@@ -697,3 +704,8 @@ apps_distclean:
ifneq ($(APPDIR),)
$(Q) $(MAKE) -C "$(TOPDIR)/$(APPDIR)" TOPDIR="$(TOPDIR)" distclean
endif
+
+check_format:
+ $(call colorecho,'Checking NuttX formatting with nxstyle')
+ @$(TOPDIR)/tools/check_code_style.sh
+ @cd "$(SRC_DIR)" && git diff --check
Review comment:
There is another problem here: You must account for that fact that .git/ is
NOT present in most people's environment. Please make the last line
conditioned on #ifeq ($(GIT_DIR),y) or you will break 80% of the nuttx user's
builds!
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services