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 Dec 6, 2024
1 parent 8c28ad2 commit a32013c
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: compose man
-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 a32013c

Please sign in to comment.