Voting

Category

real language

Bookmarking

Del.icio.us Digg Diigo DZone Earthlink Google Kick.ie
Windows Live LookLater Ma.gnolia Reddit Rojo StumbleUpon Technorati

Language make

(make syntax,portable,simple,dependencies)

Date:03/17/08
Author:rahul
URL:http://code.google.com/p/v-language/
Comments:0
Info:n/a
Score: (3.00 in 9 votes)
# who says that make is only gmake ? :)
# The make language is a very powerful one, not because of GNU extensions
# but because of the dependent targets and recursion.

PRED=`expr $* - 1`

1-bottles: 1-beer pass
        @echo "No more bottles of beer on the wall"

%-bottles: %-beer pass
        @echo "$(PRED) bottles of beer on the wall\n"
        @-make $(PRED)-bottles

1-beer:
        @echo "One bottle of beer on the wall, One bottle of beer"

%-beer:
        @echo "$* bottles of beer on the wall, $* bottles of beer"

pass:
        @echo "Take one down and pass it around,"


Using it:
make 99-bottles

Download Source | Write Comment

Alternative Versions

VersionAuthorDateCommentsRate
GNU version, no shell commandswrtlprnft07/30/100
2Andrew Dunstan04/20/053

Comments

Download Source | Write Comment

Add Comment

Please provide a value for the fields Name, Comment and Security Code.
This is a gravatar-friendly website.
E-mail addresses will never be shown.
Enter your e-mail address to use your gravatar.

Please don't post large portions of code here! Use the form to submit new examples or updates instead!

Name:

eMail:

URL:

Security Code:
  
Comment: