Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,18 @@ PACKAGE_MANAGER=cargo
# CGO_ENABLED=0

.MAIN: test/coverage
.PHONY: all clean coverage dependencies help list test
.PHONY: all build clean coverage dependencies env format help list test
.EXPORT_ALL_VARIABLES: # (2)

define crono
@start=$$(date +%s); \
$(1); \
end=$$(date +%s); \
diff=$$((end - start)); \
printf "Total time: %02d:%02d:%02d\n" $$((diff/3600)) $$((diff%3600/60)) $$((diff%60))
endef


help: list

list:
Expand Down Expand Up @@ -137,7 +146,8 @@ compose/test: compose/build
compose/run: compose/build
${DOCKER_COMPOSE} --profile production run --rm algorithm-exercises-rust

all: test coverage
all:
$(call crono, make clean; make dependencies; make build; make test; make lint; make coverage/html)

run:
ls -alh
Loading