Skip to content

Commit

Permalink
Use mkdir -p instead of ignoring return code
Browse files Browse the repository at this point in the history
We want `make` to fail if the directory doesn't exist and can't be
made for some reason.
  • Loading branch information
rhansen committed Sep 9, 2024
1 parent 1dab7b2 commit 33c38a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ else
endif

all:
-mkdir bin
mkdir -p bin
cp scripts/keyd-application-mapper bin/
$(CC) $(CFLAGS) -O3 $(COMPAT_FILES) src/*.c src/vkbd/$(VKBD).c -lpthread -o bin/keyd $(LDFLAGS)
debug:
CFLAGS="-g -fsanitize=address -Wunused" $(MAKE)
compose:
-mkdir data
mkdir -p data
./scripts/generate_xcompose
man:
for f in docs/*.scdoc; do \
Expand Down Expand Up @@ -98,7 +98,7 @@ test:
./$$f; \
done
test-io:
-mkdir bin
mkdir -p bin
$(CC) \
-DDATA_DIR= \
-o bin/test-io \
Expand Down

0 comments on commit 33c38a7

Please sign in to comment.