liangdaxian / make-it-so

Automatically exported from code.google.com/p/make-it-so
0 stars 0 forks source link

Improve generation speed on "make" #35

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago

Original comment by florian.sainjeon on 19 Dec 2013 at 9:29

GoogleCodeExporter commented 8 years ago

Original comment by florian.sainjeon on 23 Jul 2014 at 9:52