diff options
author | Alexey Yerin <yyp@disroot.org> | 2023-10-04 20:58:37 +0300 |
---|---|---|
committer | Alexey Yerin <yyp@disroot.org> | 2023-10-04 20:58:37 +0300 |
commit | a3f09a04518ce9ed7cb93719149f75c36ad02856 (patch) | |
tree | 44880d4e92108e466138ab610866e06b6403ee9e | |
parent | 1764f585bb8232edc8dafc87e7dc4e8cc3601edb (diff) |
Makefile: Update hare version -v parsing
-rw-r--r-- | Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile index 0038792..b48219b 100644 --- a/Makefile +++ b/Makefile @@ -41,12 +41,14 @@ uninstall4: rm -r "$(DESTDIR)$(THIRDPARTYDIR)/$$mod"; \ done +HAREPATH_CMD = hare version -v | awk 'harepath { gsub(/^\t/, ""); print }; /^HAREPATH/ { harepath = 1 }' | tr '\n' ':' + demo: - env HAREPATH="$(BINDINGS_DIR):$$(hare version -v | grep HAREPATH | cut -f2-)" \ + env HAREPATH="$(BINDINGS_DIR):$$($(HAREPATH_CMD))" \ hare build $$(pkg-config --libs-only-l --static gtk+-3.0) -lbsd -o demo cmd/demo demo4: - env HAREPATH="$(BINDINGS_DIR):$$(hare version -v | grep HAREPATH | cut -f2-)" \ + env HAREPATH="$(BINDINGS_DIR):$$($(HAREPATH_CMD))" \ hare build $$(pkg-config --libs-only-l --static gtk4) -lepoxy -lXi -lxkbcommon -lwayland-client -lwayland-egl -lXfixes -lXcursor -lXdamage -lXrandr -lXinerama -lcairo-script-interpreter -lbsd -o demo4 cmd/demo4 clean: |