Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hi, i have encountered this error

Status
Not open for further replies.

Thief

Technical User
Apr 19, 2001
92
US
hi,
i have encountered this error while doing "make". but i have not been able to trace it out.

> make auto.master
"Makefile", line 327: make: 1254-055 Dependency line needs colon or double colon operator.
make: 1254-058 Fatal errors encountered -- cannot continue.


the script is:-
auto.master.time: $(DIR)/auto.master
-@if [ -f $(DIR)/auto.master ] ; then $(MAKEDBM) $(DIR)/auto.master $(YPDBDIR)/$(DOM)/auto.master; touch auto.master.time ; echo "updated auto.master" ; if [ ! $(NOPUSH) ] ; then $(YPPUSH) auto.master ; echo "pushed auto.master" ; else : ; fi else echo "couldn't find $(DIR)/auto.master" ; fi

can any one tell me whats the problem...
thanx in advance


Thief................ ::)
(I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us .)
 
I presume that:

$(MAKEDBM) $(DIR)/auto.master $(YPDBDIR)/$(DOM)/auto.master;
are really one line in your makefile? Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.
 
yea...its one line Thief................ ::)
(I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us .)
 
Hmmm,

I don't know much about make, as you can probably tell, but I thought that the line

auto.master.time: $(DIR)/auto.master

read as "this defines a target named 'auto.master.time' which is first dependant upon a target named '$(DIR)/auto.master'"

and I would have written the line like this, without the $(DIR) bit

auto.master.time: auto.master

There would also need to be the target auto.master defined as well

auto.master:

with instructions on how to build it
Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top