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: |
# 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
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!
Comments