From: Matheus Horstmann Date: Tue, 30 May 2023 02:10:26 +0000 (-0300) Subject: Fix makefile X-Git-Tag: 1.14~2 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=d9b7d0b70f1a450e3bb0d0b8bae45d0c68adb8f2;p=deb_pkgs%2Fautorandr.git Fix makefile Signed-off-by: Matheus Horstmann --- 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