Skip to content

bronson/makefile-death

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

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

No packages published