]> Git — Sourcephile - julm/AoC-2020.git/blob - Makefile
add Day07
[julm/AoC-2020.git] / Makefile
1 days := 04 05 06 07
2
3 all: relock run
4 relock:
5 nix flake update --recreate-lock-file
6 shell:
7 nix -L develop
8 repl/%:
9 nix -L develop -c sh -c 'cd $* && cabal repl exe:Day'
10 build: $(foreach day,$(days), build/Day$(day))
11 build/%:
12 nix -L build .#$*
13 run: $(foreach day,$(days), run/Day$(day))
14 run/%:
15 nix -L run --no-write-lock-file .#$*