From c40ce1620efdbac03e9942f75a18bb8de08bd437 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 52d0998..21a5efe 100644 --- a/Makefile +++ b/Makefile @@ -32,7 +32,7 @@ else endif all: - -mkdir bin + mkdir -p bin cp scripts/keyd-application-mapper bin/ sed -e 's#@PREFIX@#$(PREFIX)#' keyd.service.in > keyd.service sed -e 's#@PREFIX@#$(PREFIX)#' src/vkbd/usb-gadget.service.in > src/vkbd/usb-gadget.service @@ -40,7 +40,7 @@ all: debug: CFLAGS="-g -fsanitize=address -Wunused" $(MAKE) compose: - -mkdir data + mkdir -p data ./scripts/generate_xcompose man: for f in docs/*.scdoc; do \ @@ -97,7 +97,7 @@ test: ./$$f; \ done test-io: - -mkdir bin + mkdir -p bin $(CC) \ -DDATA_DIR= \ -o bin/test-io \