Skip to content

Commit

Permalink
Create ./bin dir if not exists at build time.
Browse files Browse the repository at this point in the history
  • Loading branch information
BasicAcid committed Dec 25, 2023
1 parent bc24340 commit f6868c1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ INSTALL_DIR := ~/.local/bin

.PHONY: build deploy

build: $(TARGET)
build: create_dir $(TARGET)

create_dir:
mkdir -p bin

$(TARGET): $(SRC)
$(CC) $(CFLAGS) -o $@ $^
Expand Down

0 comments on commit f6868c1

Please sign in to comment.