diff options
Diffstat (limited to 'Makefile')
-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: |