correctly describe "$*", remove incorrect "$%"

As documented in the [GNU Make manual](https://www.gnu.org/software/make/manual/html_node/Automatic-Variables.html), `$%` is only used for files within archive files (which is a feature rarely used in my opinion). The automatic variable `$*` represents the matched part in implicit rules (%.o: %.c), e.g., "foo" for "foo.c".
This commit is contained in:
Raphael Wimmer 2018-03-19 11:35:22 +01:00 committed by GitHub
parent 3e1d6d425a
commit 1524edc13b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -21,13 +21,12 @@ out.o: src.c src.h
$^ # "src.c src.h" (all prerequisites)
%.o: %.c
$% # target member name ("foo" in "foo.c")
$* # the 'stem' with which an implicit rule matches ("foo" in "foo.c")
also:
$+ # prerequisites (all, with duplication)
$? # prerequisites (new ones)
$| # prerequisites (order-only?)
$* # basename without extension of the target (?)
$(@D) # target directory
```