about summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorDrew DeVault <drew@ddevault.org>2025-03-21 10:40:01 +0100
committerAlexey Yerin <yyp@disroot.org>2025-03-21 14:18:01 +0300
commit1e85675b652b4e133a98841d75bb7fe7e00058d5 (patch)
tree54585b454add3aaa3ffe96d6f3e109b46c4563a8 /Makefile
parent98fc3cf2108790200aa12635bc46e3cb3cb0139a (diff)
Add consistent "3" suffix to gtk3 bits
Signed-off-by: Drew DeVault <drew@ddevault.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
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