diff options
Diffstat (limited to 'src/Makefile')
| -rw-r--r-- | src/Makefile | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile new file mode 100644 index 0000000..d564047 --- /dev/null +++ b/src/Makefile @@ -0,0 +1,15 @@ +DAYS = $(shell seq 1 25 | xargs printf "%02i\n") + +.PHONY: all +all:: + +define make-day +all:: $1/run +.PHONY: $1/run +$1/run: + @echo "== day $1 ==" + @echo -en "\npart 1: " && cd $1 && time python3 solve.py 1 + @echo -en "\npart 2: " && cd $1 && time python3 solve.py 2 + @echo "" +endef +$(foreach day,$(DAYS),$(eval $(call make-day,$(day)))) |
