From fc9bd99f3963982f3994857103c9865282a26582 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Fri, 5 Jan 2024 16:02:55 -0500 Subject: [PATCH] Use `mkdir -p` instead of ignoring return code We want `make` to fail if the directory doesn't exist and can't be made for some reason. --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index c0cf93c..8c315ca 100644 --- a/Makefile +++ b/Makefile @@ -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 \ @@ -98,7 +98,7 @@ test: ./$$f; \ done test-io: - -mkdir bin + mkdir -p bin $(CC) \ -DDATA_DIR= \ -o bin/test-io \