|
|
|
|
|
by taeric
4437 days ago
|
|
I don't understand. If both the .o and the .a are created from another file, wouldn't it be safe to just rely on either one of them? (Obviously, you will need to be consistent in choice.) That is, if every time a .o is created, so is the .a, then where is the difficulty? Just rely on one (the .o). I could conceive of a scenario where the .a updated but the .o didn't, but I don't know of any tools that really work that way right now. I thought the norm was to at least touch all output files. Further, if that is happening, seems you are safest having two rules, anyway. |
|
Also, having two rules means duplicating a command:
That's bad from a maintenance perspective.