Created
May 4, 2012 17:20
-
-
Save irae/2596341 to your computer and use it in GitHub Desktop.
Makefile minimal example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# colors | |
RED=\033[01;31m | |
GREEN=\033[01;32m | |
# NC = No Color | |
NC=\033[01;00m | |
default: cores | |
foo: | |
echo "1" | |
# | |
bar: | |
@echo "2" | |
# | |
cores: | |
@echo "=== ${RED}vermelho${NC}" | |
# | |
# PHONY eh um overide pra naum ler os outputs do make, coloque em todos os targets | |
.PHONY: default foo bar cores |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment