aboutsummaryrefslogtreecommitdiff
path: root/day7/override.mk
diff options
context:
space:
mode:
authorNæþ'n Lasseter <Næþ'n Lasseter nathan@bytemark.co.uk>2015-12-17 20:10:55 +0000
committerNæþ'n Lasseter <Næþ'n Lasseter nathan@bytemark.co.uk>2015-12-17 20:10:55 +0000
commit60ba2ffc498e7403a29c02aa23f078bb9da70c39 (patch)
tree4aa401ea8bd9774a09ae107c8e0f7b3a3588fbfe /day7/override.mk
parent7a0053a986d5e691a0432291b8e077c212bbfc24 (diff)
Day 7, doesnt return
Diffstat (limited to 'day7/override.mk')
-rw-r--r--day7/override.mk11
1 files changed, 11 insertions, 0 deletions
diff --git a/day7/override.mk b/day7/override.mk
new file mode 100644
index 0000000..9557092
--- /dev/null
+++ b/day7/override.mk
@@ -0,0 +1,11 @@
+${DAY}.c: ${DAY}gen
+ ./$< < ${INPUT} > logic 2> prototypes 3> preamble
+ cat preamble prototypes logic > $@
+
+${DAY}gen: ${DAY}gen.c
+ gcc ${CFLAGS} -o $@ $< ${DAYFLAGS}
+
+genclean:
+ rm -f ${DAY}gen ${DAY}.c logic prototypes preamble
+
+.PHONY: genclean