From b464972aba88159edc202d5e2fb6aef63f9cb2d2 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Fri, 21 Mar 2025 10:40:03 +0100 Subject: Makefile: move pkg-config for demo3/demo4 to variable Signed-off-by: Drew DeVault --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index c29553b..00e2a54 100644 --- a/Makefile +++ b/Makefile @@ -35,6 +35,9 @@ MODULES_GTK4 = $(MODULES_CORE) $(MODULES_GTK_SHARED) \ gi/graphene \ gi/gsk +LIBS_3 != pkg-config --libs-only-l gtk+-3.0 +LIBS_4 != pkg-config --libs-only-l gtk4 + hare-gi: hare build -o $@ cmd/hare-gi/ .PHONY: hare-gi @@ -81,11 +84,11 @@ HAREPATH_ENV_CMD = hare version -vv | grep '^HAREPATH' demo3: eval "$$($(HAREPATH_ENV_CMD))" && env HAREPATH="$(BINDINGS_DIR):$$HAREPATH" \ - hare build $$(pkg-config --libs-only-l gtk+-3.0) -o demo3 cmd/demo3 + hare build $(LIBS_3) -o demo3 cmd/demo3 demo4: eval "$$($(HAREPATH_ENV_CMD))" && env HAREPATH="$(BINDINGS_DIR):$$HAREPATH" \ - hare build $$(pkg-config --libs-only-l gtk4) -o demo4 cmd/demo4 + hare build $(LIBS_4) -o demo4 cmd/demo4 clean: rm -f hare-gi xmltree demo3 demo4 bindings/gi/*/_generate.ha -- cgit 1.3.0-6-gf8a5