From 24c2030e6d01218d1c65cd9f47b57b39b2d00c66 Mon Sep 17 00:00:00 2001 From: Autumn Date: Sun, 23 Aug 2026 12:44:38 +0100 Subject: [build] added Makefile --- .gitignore | 3 ++- Makefile | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 Makefile diff --git a/.gitignore b/.gitignore index 8f40515..10a67f3 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -**/*.txt +*.txt +bunnytask diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..76628b5 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +EXE := bunnytask +HARE := hare +PREFIX := /usr/local + +$(EXE): + $(HARE) build -o $@ + +install: $(EXE) + mkdir -p $(PREFIX)/bin/ + cp $^ $(PREFIX)/bin/ + +uninstall: + $(RM) $(PREFIX)/bin/$(EXE) + +clean: + $(RM) $(EXE) + +check: + $(HARE) test + +.PHONY: check clean install uninstall -- cgit v1.3