0

I see a build rule like the following.

a: b c | d
    some_rule

For example:

result.xml: parser.py data0.txt | data1.txt
    python parser.py data0.txt data1.txt

So, I am wondering, how would the above be different if the OR operator "|" was not used at all. What is the use of an OR operator in dependency list?

anupamb
  • 472
  • 4
  • 13

1 Answers1

1

Short answer:
a regular prerequisite can lead to the target being rebuilt,
an order-only prerequisite doesn't force that

Long answer:
see this related answer also on SO

Milag
  • 1,793
  • 2
  • 9
  • 8