Permalink
Browse files

Adding a makefile so you can finally type "sudo make me a sandwich" i…

…n the terminal as long as you are in the same folder.
  • Loading branch information...
1 parent 36f9be9 commit f66e269a6929dd01a4d7df944546c8348dfadb7b @travist committed Oct 9, 2014
Showing with 11 additions and 0 deletions.
  1. +11 −0 Makefile
View
@@ -0,0 +1,11 @@
+me:
+ @:
+a:
+ @:
+sandwich:
+ifeq ($(shell id -u), 0)
+ @echo "Okay."
+ makemeasandwich ${ARGS}
+else
+ @echo "What? Make it yourself."
+endif

1 comment on commit f66e269

Maybe I'm paranoid, but I feel like there should be an option baked in to allow us to bypass the sudo requirement. It's funny, but I'm not a huge fan of giving sudo powers to things all willy nilly.

Please sign in to comment.