From be33426cdd3e8c89e37ec2ba6ca4fd735043693b Mon Sep 17 00:00:00 2001 From: Adam Spragg Date: Tue, 6 Dec 2022 14:26:31 +0000 Subject: Create the bin/ directory if it doesn't exist --- makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 $@ $< -- cgit v1.2.1