From 6f352ed1904fae99d2d3e62d1d4da0e04608b02f Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Tue, 27 Feb 2024 22:50:19 -0800 Subject: [PATCH] Don't ignore the return value from `rm -rf` The `-f` option causes `rm` to silently ignore files that don't exist, so `rm -rf` will only fail if `rm` has trouble deleting a file that exists. We want `make` to fail in that situation. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f600179..256bbcf 100644 --- a/Makefile +++ b/Makefile @@ -91,7 +91,7 @@ uninstall: $(DESTDIR)$(PREFIX)/bin/keyd-usb-gadget.sh \ $(DESTDIR)$(PREFIX)/lib/systemd/system/keyd.service clean: - -rm -rf bin keyd.service src/vkbd/usb-gadget.service + rm -rf bin keyd.service src/vkbd/usb-gadget.service test: @cd t; \ for f in *.sh; do \