summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorAdam Spragg <adam@spra.gg>2022-12-06 14:26:31 +0000
committerAdam Spragg <adam@spra.gg>2022-12-06 14:26:31 +0000
commitbe33426cdd3e8c89e37ec2ba6ca4fd735043693b (patch)
tree5eca20df18570925445c5a3b522b34c5b7cfcc21 /makefile
parent7bc3422dfece0f30cd0747e2449e7169ffdc11ed (diff)
Create the bin/ directory if it doesn't exist
Diffstat (limited to 'makefile')
-rw-r--r--makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/makefile b/makefile
index a13a109..ef0b2f0 100644
--- a/makefile
+++ b/makefile
@@ -1,11 +1,15 @@
CFLAGS=-Wall
-all: bin/1a bin/1b \
+all: bin \
+ bin/1a bin/1b \
bin/2a bin/2b \
bin/3a bin/3b \
bin/4a bin/4b \
bin/5 \
+bin:
+ mkdir -p $@
+
bin/%: %.c
$(CC) $(CFLAGS) -o $@ $<