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