BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

bdsproj2mak: make won't stop on compile failure

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Command Line Tools)
View previous topic :: View next topic  
Author Message
Matt Lowe
Guest





PostPosted: Tue Sep 26, 2006 2:07 am    Post subject: bdsproj2mak: make won't stop on compile failure Reply with quote



Another issue with the group makefile generated by bdsproj2mak: it doesn't
stop when a compile errors out.

Details below, but my essential question comes down to this:

Is all of the Borland make magic (temp makefile, use of &&, etc.) documented
somewhere? Or, since they give make away as a command line util anyway,
maybe I could convince them to provide the source? =)

--

Anyhow, here are the details: make doesn't stop on an error because the
makefile uses pushd and popd on a single line, concatenated with single
ampersands:

@pushd $(<D) & $(MAKE) $(SILENT) -f $(<F) $(TARGET) & @popd


Which means that if make errors, and popd succeeds, the entire command will
succeed.

I expect the right thing to do instead would be use double ampersands ...
but double ampersands make things break in nasty ways, apparently because to
borland make, && means "the name of the temporary make file, MAKE000.@@@@ or
whatever".

A workaround is to simply swipe the @popd off the end, which works because
each of these commands is executed in its own shell:

@pushd $(<D) & $(MAKE) $(SILENT) -f $(<F) $(TARGET)

Or alternatively,

@cd $(<D) & $(MAKE) $(SILENT) -f $(<F) $(TARGET)

Or maybe you could just use and escape &&, assuming Borland make gives you a
way to do this ... which brings us back to documentation for the make
utility.

--
Matt Lowe
Milsoft Utility Solutions
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Command Line Tools) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.