Improve generation speed on "make"
Closed this issue · 2 comments
GoogleCodeExporter commented
When generating your application, make will basically follow each step in the
Makefile and execute them.
However even when all files are up to date, il will invoke the "ar rcs" step in
the generation which is a huge waste of time for large projects.
To improve this, here's what I successfully tried by manually changing noe of
my project's makefile:
_____ CHANGE THIS _____
.PHONY: Debug Release
Debug: create_folders [List of .o files]
ar rcs [path to generated lib/exe] [list of .o files]
[same for Release]
_____ TO THIS _____
.PHONY: Debug Release
Debug: create_folders [path to generated lib/exe]
[path to generated lib/exe]: [List of .o files]
ar rcs [path to generated lib/exe] [list of .o files]
----------------------
This allow make not to generate everything if there's no change in the project.
Original issue reported on code.google.com by florian.sainjeon
on 19 Dec 2013 at 9:29
- Merged into: #31
GoogleCodeExporter commented
Original comment by florian.sainjeon
on 19 Dec 2013 at 9:29
- Changed state: Accepted
- Added labels: Type-Enhancement
- Removed labels: Type-Defect
GoogleCodeExporter commented
Original comment by florian.sainjeon
on 23 Jul 2014 at 9:52
- Changed state: Duplicate