diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/Makefile b/Makefile index 84d83cc..9e73e1c 100644 --- a/Makefile +++ b/Makefile @@ -38,7 +38,9 @@ hare-gi: hare build -o $@ cmd/hare-gi/ .PHONY: hare-gi -install: +install: install3 install4 + +install3: @for mod in $(MODULES_GTK3); do \ printf "installing %s\n" "$$mod"; \ mkdir -p "$(DESTDIR)$(THIRDPARTYDIR)/$$mod"; \ @@ -52,7 +54,9 @@ install4: install -m644 "$(BINDINGS_DIR)/$$mod"/* "$(DESTDIR)$(THIRDPARTYDIR)/$$mod"; \ done -uninstall: +uninstall: uninstall3 uninstall4 + +uninstall3: @for mod in $(MODULES_GTK3); do \ printf "uninstalling %s\n" "$$mod"; \ rm -r "$(DESTDIR)$(THIRDPARTYDIR)/$$mod"; \ @@ -73,15 +77,15 @@ HAREPATH_ENV_CMD = hare version -vv | grep '^HAREPATH' # the unquoted value, which makes it easy to add the bindings directory to the # path -demo: +demo3: eval "$$($(HAREPATH_ENV_CMD))" && env HAREPATH="$(BINDINGS_DIR):$$HAREPATH" \ - hare build $$(pkg-config --libs-only-l gtk+-3.0) -o demo cmd/demo + hare build $$(pkg-config --libs-only-l gtk+-3.0) -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 clean: - rm -f hare-gi xmltree demo demo4 + rm -f hare-gi xmltree demo3 demo4 bindings/gi/*/_generate.ha -.PHONY: all install install4 uninstall uninstall4 demo demo4 clean +.PHONY: all install3 install4 uninstall3 uninstall4 demo3 demo4 clean |