From 04ef13bd1c128e4e36a89de77f114d342b7562f5 Mon Sep 17 00:00:00 2001 From: Glenn Date: Mon, 16 Jun 2025 16:46:07 +0200 Subject: [PATCH] feat(Makefile): enhance installation and cleanup process Improves the installation process by ensuring the target directory exists and adds a cleanup step to maintain a clean build environment. - Add directory creation step in the install target to ensure $(PREFIX)/bin exists before installation. - Introduce a clean target to remove the code-preloader binary, preventing stale binaries from affecting future builds. Signed-off-by: Glenn --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 75909c0..55d9351 100644 --- a/Makefile +++ b/Makefile @@ -14,9 +14,13 @@ test: crystal spec --error-trace install: + mkdir -p $(PREFIX)/bin install \ -m 755 \ bin/code-preloader \ $(PREFIX)/bin +clean: + rm -f bin/code-preloader + .PHONY: spec test build all prepare install