From d9b7d0b70f1a450e3bb0d0b8bae45d0c68adb8f2 Mon Sep 17 00:00:00 2001 From: Matheus Horstmann Date: Mon, 29 May 2023 23:10:26 -0300 Subject: [PATCH] Fix makefile Signed-off-by: Matheus Horstmann --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b8ec0a8..f5f2485 100644 --- a/Makefile +++ b/Makefile @@ -161,8 +161,9 @@ LAUNCHER_LDLIBS=$(shell pkg-config --libs pkg-config xcb xcb-randr 2>/dev/null) ifneq (,$(LAUNCHER_LDLIBS)) CLEANUP_FILES+=contrib/autorandr_launcher/autorandr-launcher LAUNCHER_CFLAGS=$(shell pkg-config --cflags pkg-config xcb xcb-randr 2>/dev/null) +DEF_AUTORANDR_PATH="-DAUTORANDR_PATH=\"${DESTDIR}${PREFIX}/bin/autorandr\"" contrib/autorandr_launcher/autorandr-launcher: contrib/autorandr_launcher/autorandr_launcher.c - $(CC) $(CFLAGS) $(LAUNCHER_CFLAGS) -o $@ $+ $(LDFLAGS) $(LAUNCHER_LDLIBS) $(LDLIBS) + $(CC) $(CFLAGS) $(LAUNCHER_CFLAGS) $(DEF_AUTORANDR_PATH) -o $@ $+ $(LDFLAGS) $(LAUNCHER_LDLIBS) $(LDLIBS) install_launcher: contrib/autorandr_launcher/autorandr-launcher mkdir -p ${DESTDIR}${PREFIX}/bin