3 ms·
No, implicit rules cannot be marked as .PHONY this way. You need to declare an explicit pseudo-target to achieve this. .PHONY: FORCE FORCE: print-%: FORC
by raimue 12y ago
No, implicit rules cannot be marked as .PHONY this way. You need to declare an explicit pseudo-target to achieve this.
.PHONY: FORCE
FORCE:
print-%: FORCE ; @echo $*=$($*)
- mannykannot 12y agoI touch make files rarely enough that whenever I do, I have to re-learn most of what I need to know - and when I see phrases like 'explicit pseudo-target', I ask myself if it really has to be this way (but never have the time to answer myself.)