help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

What does this piece of code from a Makefile do??


From: haynes george
Subject: What does this piece of code from a Makefile do??
Date: Tue, 10 May 2005 23:15:51 +0100 (BST)

hi.. 

I was reading through a Makefile and found this
section from the Makefile.. 


ALL = prog1 prog2 prog3 prog4 prog5

LOCK_DIR = /var/lock/test
ECHO = /bin/echo
BIN_DIR = /home/bin
TMP_FILE = /home/temp/tmp.file
JOB = start


$(ALL)  : $(SUBSYS_FILE_DIR)/$@ 

### What does the above line do??
### I know that $@ refers to the current program being
made.


@$(ECHO) "Begin \"$(JOB) address@hidden"  >  $(TMP_FILE)

### I suppose this line prints "Begin start of a
program each time a program is started ??

@$(BIN_DIR)/$@  $(JOB)      >> $(TMP_FILE) 2>&1  

### I guess here the actual starting of job takes
place 
@$(ECHO) "End \"$(JOB) address@hidden"   >> $(TMP_FILE)     

### prints "End  stop of a progarm " ??


prog1 : prog2 prog3
prog3 : prog4
prog4 
prog5 : prog4 prog1


Thnks

haynes


________________________________________________________________________
Yahoo! India Matrimony: Find your life partner online
Go to: http://yahoo.shaadi.com/india-matrimony




reply via email to

[Prev in Thread] Current Thread [Next in Thread]