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:06 +0100
committerAlexey Yerin <yyp@disroot.org>2025-03-21 14:40:42 +0300
commit100753a060bebb9ad33a2b56722a4e83faba3fea (patch)
tree236780e4181ccb3e8f5899765101c51c9909d7c3 /Makefile
parentea84d7a04d5f2eb51c06a5cafbfd877228ab8c4a (diff)
Move bindings from bindings/gi => gi
Signed-off-by: Drew DeVault <drew@ddevault.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile28
1 files changed, 8 insertions, 20 deletions
diff --git a/Makefile b/Makefile
index 1250439..1456f25 100644
--- a/Makefile
+++ b/Makefile
@@ -10,9 +10,8 @@ SRCDIR = $(PREFIX)/src
 HARESRCDIR = $(SRCDIR)/hare
 THIRDPARTYDIR = $(HARESRCDIR)/third-party
 
-BINDINGS_DIR = bindings
 MODULES_CORE = \
-	types/libc \
+	gi/libc \
 	gi/glib \
 	gi/gobject \
 	gi/gio \
@@ -57,14 +56,14 @@ install-gtk3: .gen
 	@for mod in $(MODULES_GTK3); do \
 		printf "installing %s\n" "$$mod"; \
 		mkdir -p "$(DESTDIR)$(THIRDPARTYDIR)/$$mod"; \
-		install -m644 "$(BINDINGS_DIR)/$$mod"/* "$(DESTDIR)$(THIRDPARTYDIR)/$$mod"; \
+		install -m644 "$$mod"/* "$(DESTDIR)$(THIRDPARTYDIR)/$$mod"; \
 	done
 
 install-gtk4: .gen
 	@for mod in $(MODULES_GTK4); do \
 		printf "installing %s\n" "$$mod"; \
 		mkdir -p "$(DESTDIR)$(THIRDPARTYDIR)/$$mod"; \
-		install -m644 "$(BINDINGS_DIR)/$$mod"/* "$(DESTDIR)$(THIRDPARTYDIR)/$$mod"; \
+		install -m644 "$$mod"/* "$(DESTDIR)$(THIRDPARTYDIR)/$$mod"; \
 	done
 
 uninstall: uninstall3 uninstall4
@@ -81,25 +80,14 @@ uninstall4:
 		rm -r "$(DESTDIR)$(THIRDPARTYDIR)/$$mod"; \
 	done
 
-HAREPATH_ENV_CMD = hare version -vv | grep '^HAREPATH'
+demo3: .gen
+	hare build $(LIBS_3) -o demo3 cmd/demo3
 
-# hare version -vv returns the value of HAREPATH in form
-# HAREPATH=<possibly shell-quoted string>
-#
-# Using eval on that line will set the HAREPATH variable in the environment to
-# the unquoted value, which makes it easy to add the bindings directory to the
-# path
-
-demo3:
-	eval "$$($(HAREPATH_ENV_CMD))" && env HAREPATH="$(BINDINGS_DIR):$$HAREPATH" \
-		hare build $(LIBS_3) -o demo3 cmd/demo3
-
-demo4:
-	eval "$$($(HAREPATH_ENV_CMD))" && env HAREPATH="$(BINDINGS_DIR):$$HAREPATH" \
-		hare build $(LIBS_4) -o demo4 cmd/demo4
+demo4: .gen
+	hare build $(LIBS_4) -o demo4 cmd/demo4
 
 clean:
-	rm -f hare-gi xmltree demo3 demo4 bindings/gi/*/_generate.ha
+	rm -f hare-gi xmltree demo3 demo4 gi/*/_generate.ha
 
 .PHONY: all clean
 .PHONY: install install-gtk3 install-gtk4