• Home
  • About

Overbenny's Blog

Von Computer über Origami und Glaube zu Sinnbefreitem

Feeds:
Posts
Comments
« Ubuntu Contributor
Email usage statistic »

Sandwich makefile

25. July 2009 by overbenny

Sandwich webcomic from xkcd.com

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.

About these ads

Rate this:

Like this:

Like Loading...

Posted in freie Software, Planet Ubuntu, Sinnbefreites | Tagged makefile, sandwich, xkcd | 18 Comments

18 Responses

  1. on 25. July 2009 at 1:31 Jacob Peddicord

    You had to make a branch out of a ten-line makefile? :P


  2. on 25. July 2009 at 1:57 overbenny

    I needed a place where I could upload the Makefile. So why not using Launchpad? I tweaked the makefile; it lost two lines.


  3. on 25. July 2009 at 7:39 doctormo

    I tried out your project, but much to my surprise, when I tried to get the computer to make me a sandwich, even when using sudo, it didn’t.

    Even when it said that it would make one, no sandwich appeared on either STDPLT or STDNPKN. I think the sandwich is incorrectly going to /bin

    Please fix or I will go back to Brevel and never use Linux for sandwich making again!


    • on 25. July 2009 at 10:31 overbenny

      STDPLT? STDNPKN? Brevel?


      • on 25. July 2009 at 18:41 Mackenzie

        STDPLT = standard plate
        STDNPKN = standard napkin


  4. on 25. July 2009 at 11:06 Sinan Onur ALTINUÇ

    @doctormo
    i think you need a sandwich maker device

    Then try /dev/sandwichmaker < ingredients
    That should do it!


  5. on 25. July 2009 at 12:09 erius

    STDPLT = standard plate
    STDNPKN = standard napkin

    brevel = sandwich maker machine?


  6. on 25. July 2009 at 13:24 Ewan Marshall

    I made a slightly modified version for me to use until I install Linux on the sandwich maker.

    It can be found here: http://ewanm89.co.uk/Makefile


    • on 25. July 2009 at 13:29 overbenny

      Nice.


  7. on 25. July 2009 at 13:26 Ewan Marshall

    On another not, was wearing my xkcd t-shirt with this on when I stumbled upon your post ;)


    • on 25. July 2009 at 13:38 overbenny

      I wore this xkcd t-shirt when I was writing the makefile. ;)


  8. on 25. July 2009 at 15:38 h4x0r

    your makefile is insecure.

    $ fakeroot make me a sandwich.
    Okay.


    • on 25. July 2009 at 19:36 overbenny

      The security issue is now fixed.


  9. on 26. July 2009 at 1:14 Top Posts « WordPress.com

    [...] Sandwich makefile If you like this comic from xkcd.com, you are now able to reproduce the conversation in your shell. You only need this [...] [...]


  10. on 28. July 2009 at 3:07 Alberto (camahueto) 's status on Tuesday, 28-Jul-09 02:07:46 UTC - Identi.ca

    [...] Sandwich makefile « Overbenny’s Blog [...]


  11. on 29. July 2009 at 6:32 Nandan (gotunandan) 's status on Wednesday, 29-Jul-09 05:32:44 UTC - Identi.ca

    [...] Sandwich makefile « Overbenny’s Blog [...]


  12. on 30. July 2009 at 12:13 Mediaplayer

    Interessanter Artikel


  13. on 31. July 2009 at 22:40 Um Pouco de Tudo – sudo

    [...] Um Alemão fez um makefile onde podemos simular este cartoon na shell. Vejam no Overbenny’s Blog. [...]



Comments are closed.

  • Archives

    • November 2012 (1)
    • April 2012 (1)
    • March 2011 (3)
    • January 2011 (5)
    • December 2010 (1)
    • November 2010 (1)
    • October 2010 (1)
    • August 2010 (2)
    • July 2010 (1)
    • May 2010 (1)
    • April 2010 (2)
    • March 2010 (8)
    • January 2010 (2)
    • December 2009 (3)
    • September 2009 (3)
    • August 2009 (2)
    • July 2009 (1)
    • April 2009 (2)
    • March 2009 (1)
    • December 2008 (1)
    • November 2008 (1)
    • September 2008 (2)
    • June 2008 (1)
    • May 2008 (4)
    • April 2008 (2)
    • March 2008 (6)
  • Categories

    • Blog (1)
    • freie Software (33)
      • dvdbackup (1)
      • HTML Validator (1)
      • libkibi (5)
      • Ubuntu (21)
    • Glaube (1)
    • Origami (4)
    • Planet Debian (18)
    • Planet Ubuntu (34)
    • Sinnbefreites (3)
    • Studium (1)
    • Tiefsinniges (3)
    • Urlaub (1)
    • verschiedenes (7)
  • Pages

    • About

Blog at WordPress.com.

Theme: MistyLook by WPThemes.


Follow

Get every new post delivered to your Inbox.

Powered by WordPress.com
%d bloggers like this: