uwsampa / accept

an approximate compiler
http://accept.rocks
MIT License
37 stars 14 forks source link

Simplify application Makefile boilerplate setup #7

Closed sampsyo closed 10 years ago

sampsyo commented 10 years ago

Currently, to set up a new application, you have to create a Makefile with some boilerplate in it:

TARGET := foo
APP_MK := ../app.mk
include $(APP_MK)

It would be nice to streamline this process:

sampsyo commented 10 years ago

Once this is done, we should also document the way Makefiles work (and app.mk in particular) so people have a chance at understanding how to do more advanced things with their build workflows.

sampsyo commented 10 years ago

A marginally nicer alternative to what we have now would be to use make's include paths. The required line could be just include app.mk with the right path set up with .INCLUDE_DIRS. We could then extend he path with a flag.

sampsyo commented 10 years ago

.INCLUDE_DIRS is apparently not assignable. Giving up on this.