<message-format style="semantic">
Some checks failed
continuous-integration/drone/push Build is failing
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>
This commit is contained in:
parent
8377d59d7c
commit
04ef13bd1c
1 changed files with 4 additions and 0 deletions
4
Makefile
4
Makefile
|
@ -14,9 +14,13 @@ test:
|
||||||
crystal spec --error-trace
|
crystal spec --error-trace
|
||||||
|
|
||||||
install:
|
install:
|
||||||
|
mkdir -p $(PREFIX)/bin
|
||||||
install \
|
install \
|
||||||
-m 755 \
|
-m 755 \
|
||||||
bin/code-preloader \
|
bin/code-preloader \
|
||||||
$(PREFIX)/bin
|
$(PREFIX)/bin
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f bin/code-preloader
|
||||||
|
|
||||||
.PHONY: spec test build all prepare install
|
.PHONY: spec test build all prepare install
|
||||||
|
|
Loading…
Add table
Reference in a new issue