aboutsummaryrefslogtreecommitdiff
path: root/Makefiles/lisp.mk
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-12-18 18:58:32 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-12-18 18:58:32 +0100
commitaeeb7856d32a904d22c5f1cdeca443bb7fcd7e49 (patch)
tree4aacd9f841f515254ed581970070b3e1aa72301f /Makefiles/lisp.mk
parent65beb3ea0223e693ac348c6133e496ada2b2352f (diff)
Refactor the intcode machine
Diffstat (limited to 'Makefiles/lisp.mk')
-rw-r--r--Makefiles/lisp.mk8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefiles/lisp.mk b/Makefiles/lisp.mk
index b9122df..d181127 100644
--- a/Makefiles/lisp.mk
+++ b/Makefiles/lisp.mk
@@ -1,8 +1,12 @@
.POSIX:
all:
- sed '/START PART 2/,/END PART 2/d' puzzles.lisp >puzzle-1.lisp
- sed '/START PART 1/,/END PART 1/d' puzzles.lisp >puzzle-2.lisp
+ sed -e '/START PART 2/,/END PART 2/d' \
+ -e '1a(defconstant +puzzle-part+ 1)' \
+ puzzles.lisp >puzzle-1.lisp
+ sed -e '/START PART 1/,/END PART 1/d' \
+ -e '1a(defconstant +puzzle-part+ 2)' \
+ puzzles.lisp >puzzle-2.lisp
chmod +x puzzle-[12].lisp
clean: