From fe011cb26bc113e11be292f4501bb708eaef9547 Mon Sep 17 00:00:00 2001 From: speckitor Date: Fri, 8 May 2026 19:19:43 +0700 Subject: [PATCH] config.mk tools --- Makefile | 6 +++--- include/types.h | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index c418a9a..613fabb 100644 --- a/Makefile +++ b/Makefile @@ -7,8 +7,8 @@ proto: $(WAYLAND_SCANNER) server-header ./protocols/wlr-layer-shell-unstable-v1.xml wlr-layer-shell-unstable-v1-protocol.h compile: proto - cc -o absinthe src/* $(CFLAGS) $(LDFLAGS) + $(CC) -o absinthe src/* $(CFLAGS) $(LDFLAGS) format: - find src/ -type f -print0 | xargs -0 clang-format -i - find include/ -type f -print0 | xargs -0 clang-format -i + find src/ -type f | xargs $(CLANG_FORMAT) -i + find include/ -type f | xargs $(CLANG_FORMAT) -i diff --git a/include/types.h b/include/types.h index e492a55..11c1133 100644 --- a/include/types.h +++ b/include/types.h @@ -21,12 +21,12 @@ #include #endif -#define BTN_LEFT 0x110 -#define BTN_RIGHT 0x111 -#define BTN_MIDDLE 0x112 +#define BTN_LEFT 0x110 +#define BTN_RIGHT 0x111 +#define BTN_MIDDLE 0x112 -#define MAX(A, B) (A) > (B) ? (A) : (B) -#define MIN(A, B) (A) < (B) ? (A) : (B) +#define MAX(A, B) (A) > (B) ? (A) : (B) +#define MIN(A, B) (A) < (B) ? (A) : (B) /* macro for adding listener for event */ #define LISTEN(L, C, E) \ do { \