bronson/makefile-death
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Advantages - Full dependency handling, no phantom rebuilds. - Can keep different configurations simultaneously: debug, test, release, etc. - Can build source on a read-only medium: OBJDIR=/tmp/obj How To Use - Copy project/scripts directory to your application. - Create your application's Makefile based on project/Makefile. - Run 'make' or 'make CONFIG=debug'. Everything should just work. Thoughts Q: Why create custom variables (CFLAGS_debug += -DABC) when gmake provides target-specific variables (debug: CFLAGS += -DABC) that should do the same thing? A: Because sometimes you need to access a configuration's variables outside of its context. gmake doesn't offer any way to do this.
About
A better way to use Makefiles
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published