~sircmpwn/hare-dev

hare-harfbuzz: Add a basic Makefile installation ruleset v1 APPLIED

Willow Barraco: 1
 Add a basic Makefile installation ruleset

 1 files changed, 25 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/hare-dev/patches/53869/mbox | git am -3
Learn more about email & git

[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