We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f3c00b commit 002d4baCopy full SHA for 002d4ba
1 file changed
Makefile
@@ -32,6 +32,15 @@ DOCKER_COMPOSE=docker compose
32
.PHONY: all clean dependencies help list test outdated
33
.EXPORT_ALL_VARIABLES: # (2)
34
35
+define crono
36
+ @start=$$(date +%s); \
37
+ $(1); \
38
+ end=$$(date +%s); \
39
+ diff=$$((end - start)); \
40
+ printf "Total time: %02d:%02d:%02d\n" $$((diff/3600)) $$((diff%3600/60)) $$((diff%60))
41
+endef
42
+
43
44
help: list
45
46
list:
@@ -126,7 +135,8 @@ compose/test: compose/build
126
135
compose/run: compose/build
127
136
${DOCKER_COMPOSE} --profile production run --rm algorithm-exercises-ts make run
128
137
129
-all: env dependencies test
138
+all:
139
+ $(call crono, make clean; make dependencies; make build; make test; make lint; make coverage/html)
130
140
131
141
run:
132
142
ls -alh
0 commit comments