[PATCH hare-harfbuzz] Add a basic Makefile installation ruleset
Export this patch
Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
---
Makefile | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/Makefile b/Makefile
index 0321144..833b177 100644
--- a/Makefile
+++ b/Makefile
@@ -5,3 +5,28 @@ LIBS=$(shell $(PKGCONF) $(PKGCONF_FLAGS) harfbuzz-cairo libbsd)
hb:
hare build $(LIBS) -o hb cmd/hb/
.PHONY: hb
+
+.POSIX:
+.SUFFIXES:
+HARE=hare
+HAREFLAGS=
+HAREDOC=haredoc
+
+DESTDIR=
+PREFIX=/usr/local
+SRCDIR=$(PREFIX)/src
+HARESRCDIR=$(SRCDIR)/hare
+THIRDPARTYDIR=$(HARESRCDIR)/third-party
+
+check:
+ $(HARE) test
+
+install:
+ mkdir -p $(DESTDIR)$(THIRDPARTYDIR)/harfbuzz/cairo
+ install -m644 harfbuzz/*.ha $(DESTDIR)$(THIRDPARTYDIR)/harfbuzz
+ install -m644 harfbuzz/cairo/*.ha $(DESTDIR)$(THIRDPARTYDIR)/harfbuzz/cairo
+
+uninstall:
+ rm -rf $(DESTDIR)$(THIRDPARTYDIR)/harfbuzz
+
+.PHONY: check install uninstall
--
2.45.2
Thanks!
To git@git.sr.ht:~sircmpwn/hare-harfbuzz
524d77d.. master -> master