diff options
author | Drew DeVault <drew@ddevault.org> | 2025-03-21 10:40:03 +0100 |
---|---|---|
committer | Alexey Yerin <yyp@disroot.org> | 2025-03-21 14:18:01 +0300 |
commit | b464972aba88159edc202d5e2fb6aef63f9cb2d2 (patch) | |
tree | e7657a3713c0541d0b5cca107294200a099920a2 | |
parent | 1f617481fc6211c21cb6c22712c3c933b4426271 (diff) |
Makefile: move pkg-config for demo3/demo4 to variable
Signed-off-by: Drew DeVault <drew@ddevault.org>
-rw-r--r-- | Makefile | 7 |
1 files 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 |