what is the most optimize makefile rules to a create an object needing a lot of intermidate and (mostly) useless files -


i have prerequisites: a, b, , c , want build f (final)

i can write make rules (create , update different each command)

f : b c     create a1      create a2 a1     create a3 a2     create b1 b     create f c     update f b1     update f a3  

or

f : c b1 a3     create f c     update f b1     update f a3         b1 : b     create b1 b a3 : a2     create a3 a2 a2 : a1     create a2 a1 a1 :     create a1 

any idea reliable, fast ?

more granularity in makefile desirable. if 1 of jobs in pipeline fails, can correct error , pick make died. additionally, rules easier read.

the form single rule , many commands faster in execution because fewer timestamps checked , fewer rules need evaluated; however, time difference inconsequential.


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -