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 Feb 28, 2024
1 parent ee4ec2b commit 3d324bc
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,14 +32,14 @@ else
endif

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

0 comments on commit 3d324bc

Please sign in to comment.