Skip to content

Commit

Permalink
Clarify priorities
Browse files Browse the repository at this point in the history
chaselambda committed Jun 18, 2024
1 parent d8cf24d commit ff2ad79
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -760,6 +760,7 @@ <h2 id="static-pattern-rules">Static Pattern Rules</h2>
<span class="hljs-section">all.c:</span>
echo <span class="hljs-string">"int main() { return 0; }"</span> &gt; all.c

<span class="hljs-comment"># Note: all.c does not use this rule because Make prioritizes more specific matches when there is more than one match.</span>
<span class="hljs-section">%.c:</span>
touch <span class="hljs-variable">$@</span>

1 change: 1 addition & 0 deletions src/index.md
Original file line number Diff line number Diff line change
@@ -397,6 +397,7 @@ $(objects): %.o: %.c
all.c:
echo "int main() { return 0; }" > all.c

# Note: all.c does not use this rule because Make prioritizes more specific matches when there is more than one match.
%.c:
touch $@

0 comments on commit ff2ad79

Please sign in to comment.