-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implementing $(*F) and $(*D) #32
Comments
Can you provide an example of what doesn't work? I tried this:
and it seems to do stuff that looks correct. |
Makefile: COMMAND1 = echo "$(?F)"
COMMAND2 = echo "$(@F)"
COMMAND3 = echo "$(*F)"
COMMAND4 = echo "$(<F)"
build/test.o: src/test.c src/test.h src/foo.c
@$(COMMAND1)
@$(COMMAND2)
@$(COMMAND3)
@$(COMMAND4) pdpmake output:
gmake output:
|
This isn't about the
your Makefile will output blank lines. According to POSIX Evidently GNU make allows |
I see, thank you for the explanation. Having this feature would definitely be nice but it's completely up to you, feel free to close the issue if it's not on the roadmap. |
I'll keep this issue open as a reminder. |
POSIX only requires $< and $* to be set for inference rules, not target rules. As an extension allow them to be set for target rules, as in GNU make. This may or may not be useful. (GitHub issue #32)
|
Hello again,
pdpmake currently implements the alternative forms of
$?
which are$(?F)
and$(?D)
, however it does not implement the alternative forms of the internal macros$<
and$*
(maybe$%
too I haven't tested)As per the specification (emphasis mine):
Currently both GNU Make and BSD Make implement this.
The text was updated successfully, but these errors were encountered: