$ ls
Makefile
$ make me a sandwich
What? Make it yourself.
$ ls
Makefile
$ sudo make me a sandwich
Okay.
$ ls
Makefile sandwich
$
Last active
March 9, 2017 05:08
-
-
Save evincarofautumn/0190c7f681c41087918396af83cc0c37 to your computer and use it in GitHub Desktop.
Sandwich
This file contains hidden or 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
.PHONY: me a | |
sandwich: | |
@if [ "$$EUID" -ne 0 ]; then \ | |
echo "What? Make it yourself."; \ | |
exit; \ | |
else \ | |
echo "Okay."; \ | |
touch sandwich; \ | |
fi | |
me: | |
@true | |
a: | |
@true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment