From 33c38a76fe57806c57c85fc9d7ddc6a6ad195fc9 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 256bbcf..1e4e9ca 100644 --- a/Makefile +++ b/Makefile @@ -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 \ @@ -98,7 +98,7 @@ test: ./$$f; \ done test-io: - -mkdir bin + mkdir -p bin $(CC) \ -DDATA_DIR= \ -o bin/test-io \