Skip to content

Instantly share code, notes, and snippets.

@growlnx
Last active May 5, 2019 15:16
Show Gist options
  • Save growlnx/739b71edaec3bdd1f4987a3f1a727d5e to your computer and use it in GitHub Desktop.
Save growlnx/739b71edaec3bdd1f4987a3f1a727d5e to your computer and use it in GitHub Desktop.
.PHONY= all test build clean
SRC=$$(find . -name "*.c" )
PROJECT=project_name_here
all: test
test: build
@echo -e "================================================================================"
@figlet -tk $(PROJECT)
@echo -e "================================================================================"
@dist/$(PROJECT) example/$(EXAMPLE)
build: clean
@mkdir dist
@gcc -o dist/$(PROJECT) -g -I src $(SRC)
clean:
@rm dist -rf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment