Mendel90
Mendel90 copied to clipboard
Makefile based build system?
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.
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.