2024-12-04 17:55:59 +00:00
|
|
|
.POSIX:
|
|
|
|
.SUFFIXES:
|
2024-12-05 15:50:29 +00:00
|
|
|
|
2024-12-04 17:55:59 +00:00
|
|
|
PREFIX=/usr/local
|
|
|
|
SRCDIR=${PREFIX}/src
|
|
|
|
HARESRCDIR=${SRCDIR}/hare
|
|
|
|
HARE=hare
|
|
|
|
HAREPATH=vendor/hare-unicode:${HARESRCDIR}/stdlib:${HARESRCDIR}/third-party
|
2024-12-04 16:29:11 +00:00
|
|
|
|
2024-12-06 16:56:26 +00:00
|
|
|
.PHONY: check build clean print-harepath
|
|
|
|
|
2024-12-04 17:55:59 +00:00
|
|
|
|
|
|
|
check:
|
2024-12-05 00:40:14 +00:00
|
|
|
@env HAREPATH=${HAREPATH} hare test -T +test
|
2024-12-05 15:50:29 +00:00
|
|
|
|
2024-12-04 17:55:59 +00:00
|
|
|
build:
|
2024-12-05 15:50:29 +00:00
|
|
|
@env HAREPATH=${HAREPATH} hare build cmd/kj
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f kj
|
2024-12-06 16:56:26 +00:00
|
|
|
|
|
|
|
print-harepath:
|
|
|
|
@echo ${HAREPATH}
|