Preferably, one that flies from Montgomery.

USER := $(shell whoami)

ifeq ($(USER), root)
MESSAGE = "Okay."
else
MESSAGE = "What? Make it yourself."
endif

NOECHO = @

me ::
- $(NOECHO) echo $(MESSAGE)

a ::
- $(NOECHO) echo

sandwich ::
- $(NOECHO) echo

"Preferably, one that flies from Montgomery." Comments

Yay for broken (er, uhm, gnu) makefiles. Standards for the win!

> mikew@mesamike:~$ make me a sandwich
> What? Make it yourself.

Nuts. And now I'm really hungry!


Post a comment
Name Required
Email Required

URL
Remember info
Yes No

Comment Required


Type the characters you see in the picture above.