From 9fe306e7893d614c0808fdacbf10d6264d6d8a22 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 caeb1cb..bb96210 100644 --- a/Makefile +++ b/Makefile @@ -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 \ @@ -96,7 +96,7 @@ test: ./$$f; \ done test-io: - -mkdir bin + mkdir -p bin $(CC) \ -DDATA_DIR= \ -o bin/test-io \