forked from lowRISC/ibex
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid spurious rebuilds in core_ibex Makefile with OUT = sim
We have an order-only dependency on the output directory in the rule for $(sim-cfg-mk). If that output directory happens to be called "sim", we now have a dependency on "sim". But that's the name of a phony rule that runs the simulation, which means we end up doing stuff in a strange order and defeating the variable dumping in the dependency tracking, causing a spurious rebuild. This patch defines a variable called OUT-DIR, which is OUT with a trailing '/' appended. We use it uniformly in the rest of the file but (I think) it's probably only actually needed in the dependency for $(sim-cfg-mk). Now, the rule depends on "sim/", which isn't the name of a phony rule, and all is well.
- Loading branch information
1 parent
a26c947
commit aceb776
Showing
1 changed file
with
21 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters