nophead / Mendel90

A RepRap Mendel variant using sheets for the frame instead of rods
http://hydraraptor.blogspot.com/2011/12/mendel90.html
261 stars 248 forks source link

Makefile based build system? #26

Open createthis opened 11 years ago

createthis commented 11 years ago

Any interest in a Makefile based build system?

The advantage would be the ability to not recompile/rebuild files that haven't changed. I think right now ./make_machine.py always rebuilds everything, and it takes quite a while to run, even on a very modern/powerful machine.

Just curious.

nophead commented 11 years ago

The problem is the way the code is structured it would rebuild everything anyway. The configuration and the vitamins are included in every file. Main includes everything, directly or indirectly and that is the file that make_machine compiles to make the sheets.

I only run it when I am doing a release and that runs it three times with a different config, so everything is compiled thee times.

When I am working on changes I just use openscad to see the effect and that has a reasonable dependency and incremental build scheme so it is very slow to open but quicker to make changes once open.