From ee4ec2b30f73382af5c57ebc8e044701517bb0d8 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 ce1612a..caeb1cb 100644 --- a/Makefile +++ b/Makefile @@ -89,7 +89,7 @@ uninstall: $(DESTDIR)$(PREFIX)/bin/keyd-usb-gadget.sh \ $(DESTDIR)$(PREFIX)/lib/systemd/system/keyd.service clean: - -rm -rf bin keyd.service + rm -rf bin keyd.service test: @cd t; \ for f in *.sh; do \