Skip to content

Commit c8a3576

Browse files
author
Gonzalo Diaz
committed
[CONFIG] [make] "all" target now runs entire workflow
1 parent ee35494 commit c8a3576

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

Makefile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@ FILES := $(shell find $(SRC_DIR) -name '*.cpp' -o -name '*.c' -o -name '*.h' -o
3434
.PHONY: all clean dependencies help list test outdated
3535
.EXPORT_ALL_VARIABLES: # (2)
3636

37+
define crono
38+
@start=$$(date +%s); \
39+
$(1); \
40+
end=$$(date +%s); \
41+
diff=$$((end - start)); \
42+
printf "Total time: %02d:%02d:%02d\n" $$((diff/3600)) $$((diff%3600/60)) $$((diff%60))
43+
endef
44+
3745
help: list
3846

3947
list:
@@ -143,7 +151,8 @@ compose/run: compose/build
143151

144152
compose/all: compose/rebuild compose/test compose/lint
145153

146-
all: env dependencies test lint
154+
all:
155+
$(call crono, make clean; make dependencies; make build; make test; make lint; make coverage/html)
147156

148157
run:
149158
ls -alh

0 commit comments

Comments
 (0)