Skip to content

Commit a068d74

Browse files
committed
SWPROT-8953: build: Add run rule
Origin: SiliconLabsSoftware#41 Signed-off-by: Philippe Coval <philippe.coval@silabs.com>
1 parent 14a1b28 commit a068d74

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

helper.mk

+6-1
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,15 @@ cmake_options+=-DCARGO_TARGET_TRIPLE="${CARGO_TARGET_TRIPLE}"
9292
export CMAKE_TARGET_TRIPLE
9393
endif
9494

95+
run_file?=${build_dir}/applications/zpc/zpc
9596

9697
help: ./helper.mk
9798
@echo "# ${project}: ${url}"
9899
@echo "#"
99100
@echo "# Usage:"
100101
@echo "# ${<D}/${<F} setup # To setup developer system (once)"
101102
@echo "# ${<D}/${<F} VERBOSE=1 # Default build tasks verbosely (depends on setup)"
102-
@echo "# ${<D}/${<F} # For more info"
103+
@echo "# ${<D}/${<F} help/all # For more info"
103104
@echo "#"
104105

105106
help/all: README.md NEWS.md
@@ -260,6 +261,10 @@ prepare: git/prepare
260261
all/default: configure prepare all test dist
261262
@date -u
262263

264+
run_args?=--help
265+
run:
266+
file -E ${run_file}
267+
${run_file} ${run_args}
263268

264269
### @rootfs is faster than docker for env check
265270

0 commit comments

Comments
 (0)