code-preloader/Makefile
Glenn 2b39fbddf2
Some checks failed
continuous-integration/drone/push Build is failing
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.
  </message-format>

Signed-off-by: Glenn <glenux@glenux.net>
2025-06-16 16:46:25 +02:00

26 lines
307 B
Makefile

PREFIX=/usr
all: build
prepare:
shards install
build:
shards build --error-trace
spec: test
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