Une collection organisée de snippets de code pour accélérer votre développement. Parcourez, recherchez et copiez en un clic.
print-vars:
@echo $(MY_VAR)
# Ceci est un commentaire
export CC
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
clean: ## Nettoie les fichiers compilés
...
subsystem:
$(MAKE) -C subdir
# Lancer avec : make install PREFIX=/usr
install:
cp prog $(PREFIX)/bin
# Pour lancer en parallèle
MAKEFLAGS += -j4