From 63fe8290a5628f505defc24e16ae12cf4b4dba60 Mon Sep 17 00:00:00 2001 From: Lobo Torres Date: Wed, 4 Dec 2024 14:55:59 -0300 Subject: [PATCH] add HAREPATH to makefile for vendored deps --- Makefile | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 13f2fad..22f3d18 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,14 @@ -.PHONY: test +.POSIX: +.SUFFIXES: +PREFIX=/usr/local +SRCDIR=${PREFIX}/src +HARESRCDIR=${SRCDIR}/hare +HARE=hare +HAREPATH=vendor/hare-unicode:${HARESRCDIR}/stdlib:${HARESRCDIR}/third-party -test: - @hare test +.PHONY: check build + +check: + @env HAREPATH=${HAREPATH} hare test +build: + @env HAREPATH=${HAREPATH} hare build