From 1e1394b4ca9216e1243663954b3bd8ac4c29e839 Mon Sep 17 00:00:00 2001 From: Pinghao Wu Date: Mon, 9 Sep 2024 22:16:31 +0800 Subject: [PATCH] Makefile: move 'all' target to the first thus the default --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 3b536b1..e7f1f20 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,9 @@ ifeq ($(SENSORS), joycon) SENSORS_LIBS = -levdev endif +.PHONY: $(BINARIES) +all: $(BINARIES) + event-codes: hare build -o $@ aux/$@/ evdev/codes.ha: event-codes @@ -22,7 +25,6 @@ pointerd: evdev/codes.ha hare build -levdev -o $@ cmd/$@/ motion-control: hare build $(SENSORS_LIBS) -T +$(SENSORS) -o $@ cmd/$@/ -.PHONY: $(BINARIES) -all: $(BINARIES) + clean: rm -f event-codes evdev/codes.ha $(BINARIES) -- 2.45.2