File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,9 +20,14 @@ no_repo_acl = $(STATUS_FLAGS_DIR)/no_repo_acl.flag
2020# Creates a folder if it doesn't exist. Also sets the timestamp to 0 if it is
2121# created.
2222#
23+ # To allow output to be printed, we use the $(eval) function to create a new
24+ # variable _out which will contain the output of the shell command. If the output
25+ # is not empty, we print it to the console.
26+ #
2327# $1 - Folder path
2428define create_folder
25- $(call shell_real_build_only, if [ ! -d $1 ]; then mkdir -p $1 && touch -d @0 $1 ; fi )
29+ $(eval _out := $(call shell_real_build_only, if [ ! -d $1 ]; then mkdir -p $1 2>&1 && touch -d @0 $1 ; fi ) )
30+ $(if $(strip $(_out ) ) ,$(warning $(_out ) ) )
2631endef
2732
2833# Runs a shell commannd only if we are actually doing a build rather than parsing the makefile for tab-completion etc
You can’t perform that action at this time.
0 commit comments