aboutsummaryrefslogtreecommitdiff
path: root/2021/06/Makefile
diff options
context:
space:
mode:
authorThomas Voss <thomasvoss@live.com> 2021-12-06 06:57:57 +0100
committerThomas Voss <thomasvoss@live.com> 2021-12-06 06:57:57 +0100
commit7a58c33804fde0a070aa6faabb0ca385c324f61a (patch)
treefc933255743ff59c86669cc723d86df72e1c5931 /2021/06/Makefile
parent396d7ae9cd0b67483293553b2e0a966a98356c4a (diff)
Add day 6 solutions
Diffstat (limited to '2021/06/Makefile')
-rw-r--r--2021/06/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/2021/06/Makefile b/2021/06/Makefile
new file mode 100644
index 0000000..9f2e236
--- /dev/null
+++ b/2021/06/Makefile
@@ -0,0 +1,8 @@
+all:
+ m4 -D DAYS=80 puzzles.py | sed '/START PART 2/,/END PART 2/d' >puzzle-1.py
+ m4 -D DAYS=256 puzzles.py | sed '/START PART 1/,/END PART 1/d' >puzzle-2.py
+ chmod +x puzzle-[12].py
+
+.PHONY: clean
+clean:
+ rm -f puzzle-[12].py