aoc-2018-python

Advent of Code 2018 Solutions in Python
git clone https://git.sinitax.com/sinitax/aoc-2018-python
Log | Files | Refs | README | sfeed.txt

Makefile (334B)


      1DAYS = $(shell seq 1 25 | xargs printf "%02i\n")
      2
      3.PHONY: all
      4all::
      5
      6define make-day
      7all:: $1/run
      8.PHONY: $1/run
      9$1/run:
     10	@echo "== day $1 =="
     11	@echo -en "\npart 1: " && cd $1 && time python3 solve.py 1
     12	@echo -en "\npart 2: " && cd $1 && time python3 solve.py 2
     13	@echo ""
     14endef
     15$(foreach day,$(DAYS),$(eval $(call make-day,$(day))))