summaryrefslogtreecommitdiff
path: root/make
diff options
context:
space:
mode:
authorJulien Rioux <jrioux@physics.utoronto.ca>2012-02-07 11:51:16 -0500
committerJulien Rioux <jrioux@physics.utoronto.ca>2012-02-22 09:12:04 -0500
commit0bb3eb14a16a605ca202dacbf657bdbe5dc94ebf (patch)
tree8720458470d2d3d787a63b043ded200601492bb5 /make
parentd7f915509a80b06e2788e89de28f7fae6d2ac71a (diff)
Build: Use order-only prerequisites in lilypond-book chain rule.
The chain rule makes sure that only one instance of lilypond-book is running at once. However, it also adds superficial dependencies between manuals. We can avoid this using GNU make's order-only syntax for prerequisites, which adds a pipe (|) character in front.
Diffstat (limited to 'make')
-rw-r--r--make/ly-rules.make5
1 files changed, 3 insertions, 2 deletions
diff --git a/make/ly-rules.make b/make/ly-rules.make
index 0461e1b9c6..418d1b9f03 100644
--- a/make/ly-rules.make
+++ b/make/ly-rules.make
@@ -9,9 +9,10 @@ $(outdir)/%.latex: %.doc $(INIT_LY_SOURCES) $(SCHEME_SOURCES)
# This allows -j make option while making sure only one lilypond-book instance
-# is running at the same time
+# is running at the same time, using GNU make's order-only prerequisites so
+# as to not create superficial dependencies between unrelated manuals.
define CHAIN_RULE
-$(i)
+| $(i)
$(i):
endef