Closed brevzin closed 4 years ago
Oh oops. Okay. What is this |
thing??
It's called an order-only dependency. Basically, there are two things that dependencies drive when you have something like x : y
:
x
, run the rule for y
firsty
changes, re-run the rule for x
An order-only dependency (x : | z
) does (1) but not (2). Building the output directory is like the canonical use of order-only dependency (with a normal dependency, anytime you build anything, you would have to then rebuild everything).
If the
OUTDIR
is a normal dependency and I'm building multiple papers into the same directory, then touching anything means rebuilding everything. TheOUTDIR
just needs to be created by this step, it doesn't need to trigger rebuilds.