commit: 015d00af6fa255320a0042fb8704d454003a1844
parent 6d1edafad23ebdf02fc6f2412024870c4d0ea23d
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Wed, 6 Jul 2022 08:45:11 +0200
Makefile: Add HARE and HAREFLAGS variables
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
@@ -4,6 +4,8 @@ MANDIR ?= $(PREFIX)/share/man
AR ?= ar
CC ?= cc
+HARE ?= hare
+HAREFLAGS ?=
CFLAGS ?= -Os -s
MANDOC ?= mandoc
@@ -13,7 +15,7 @@ TEST_BLOBS = test/fixtures/hello test/fixtures/hello.a test/fixtures/hello.o
all: $(EXE)
$(EXE): main.ha
- hare build -o $@
+ $(HARE) build $(HAREFLAGS) -o $@
.PHONY: clean
clean:
@@ -32,7 +34,7 @@ test/fixtures/hello: test/fixtures/hello.c
test: all $(TEST_BLOBS)
rm -fr test/check_dir-fixtures
cp -r test/fixtures test/check_dir-fixtures
- hare test
+ $(HARE) $(HAREFLAGS) test
rm -fr test/check_dir-fixtures
$(MANDOC) -Tlint -Wunsupp,error,warning $(EXE).1