aboutsummaryrefslogtreecommitdiff
path: root/Makefiles/py.mk
diff options
context:
space:
mode:
Diffstat (limited to 'Makefiles/py.mk')
-rw-r--r--Makefiles/py.mk9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefiles/py.mk b/Makefiles/py.mk
new file mode 100644
index 0000000..e32992b
--- /dev/null
+++ b/Makefiles/py.mk
@@ -0,0 +1,9 @@
+.POSIX:
+
+all:
+ sed '/START PART 2/,/END PART 2/d' puzzles.py >puzzle-1.py
+ sed '/START PART 1/,/END PART 1/d' puzzles.py >puzzle-2.py
+ chmod +x puzzle-[12].py
+
+clean:
+ rm -f puzzle-[12].py