Von Computer über Origami und Glaube zu Sinnbefreitem

Menu

Sandwich makefile

Sandwich webcomic from xkcd.com

If you like this comic from xkcd.com, you are now able to reproduce the conversation in your shell. You only need this makefile:me a:
@true
sandwich.:
ifeq ($(shell if touch / 2> /dev/null; then id -u; fi),0)
@echo "Okay."
else
@echo "What? Make it yourself."
endif
.PHONY: me a sandwich.
Download the Makefile from my sandwich branch or copy & paste the text above into your preferred editor (you have to convert the spaces to tabs) and save it as Makefile. Then you can run “make me a sandwich.” in your terminal and see what happens.