diff options
author | Adam Spragg <adam@spra.gg> | 2022-12-06 14:26:31 +0000 |
---|---|---|
committer | Adam Spragg <adam@spra.gg> | 2022-12-06 14:26:31 +0000 |
commit | be33426cdd3e8c89e37ec2ba6ca4fd735043693b (patch) | |
tree | 5eca20df18570925445c5a3b522b34c5b7cfcc21 | |
parent | 7bc3422dfece0f30cd0747e2449e7169ffdc11ed (diff) |
Create the bin/ directory if it doesn't exist
-rw-r--r-- | makefile | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 $@ $< |