advent-of-code/2021/Makefile

7 lines
265 B
Makefile
Raw Permalink Normal View History

2023-08-02 11:46:44 +02:00
N=$(shell find ./* -maxdepth 0 -type d | grep -v git | wc -l)
DIR_NAME=$(shell printf "%02d" $(N))
.PHONY: new
new:
cp -r 00_template "$(DIR_NAME)" && curl -s -H "Cookie: session=$$AOC_SESSION" "https://adventofcode.com/2021/day/$(N)/input" > "$(DIR_NAME)"/input