Skip to content

Instantly share code, notes, and snippets.

@irae
Created May 4, 2012 17:20
Show Gist options
  • Save irae/2596341 to your computer and use it in GitHub Desktop.
Save irae/2596341 to your computer and use it in GitHub Desktop.
Makefile minimal example
# 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