Makefile
Voici par exemple, le Makefile que j'utilise ici:
# Makefile of wiki.soucy.cc
# <https://man.openbsd.org/make>
.POSIX:
SHELL := /bin/sh
all: build deploy
add:
satelito exec add
css:
./assets/css/css.sh
assets: css
build: assets
satelito make --export
deploy:
./bin/deploy
serve:
python3 -m http.server 8080 -d ./public_html/
watch:
find ./assets/css/ | entr -c -d ./assets/css/css.sh
Je m'en sers pour exécuter des tâches répétitives liés à un projet de site web statique. Mais les Makefile sont habituellement pour gérer des dépendances et compiler.
Sources / Ressources
- https://blog.sanctum.geek.nz/unix-as-ide-building/
- https://grafikart.fr/tutoriels/makefile-953
- https://learnxinyminutes.com/fr/make/
- https://pubs.opengroup.org/onlinepubs/9699919799/utilities/make.html
- https://nullprogram.com/blog/2017/08/20/
- https://makefiletutorial.com/
- https://spin.atomicobject.com/makefiles-vs-package-json-scripts/