|
From: | Peter Marshall |
Subject: | Documentation issue |
Date: | Thu, 5 Sep 2019 16:49:58 -0400 |
foo : bar/lose
cd $(@D) && gobble $(@F) > ../$@
10.5.3 Automatic Variables
‘$(@D)’
The directory part of the file name of the target, with the trailing slash removed. If the value of ‘$@’ is dir/foo.o then ‘$(@D)’ is dir. This value is . if ‘$@’ does not contain a slash.
The file-within-directory part of the file name of the target. If the value of ‘$@’ is dir/foo.o then ‘$(@F)’ is foo.o. ‘$(@F)’ is equivalent to ‘$(notdir $@)’.
Thanks,
Peter
[Prev in Thread] | Current Thread | [Next in Thread] |