Created
August 22, 2017 12:56
-
-
Save aprell/6886fef4e0c79a92cec0f3fabe1e8604 to your computer and use it in GitHub Desktop.
GNU make special target: .ONESHELL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.ONESHELL: | |
foo: | |
@foo=defined | |
echo $${foo:-undefined} | |
.PHONY: foo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From https://www.gnu.org/software/make/manual/html_node/Special-Targets.html:
See also: https://www.gnu.org/software/make/manual/html_node/One-Shell.html