Re: make & SCCS evilness

"Bryan O'Sullivan" <[email protected]>
Newsgroups gmane.comp.version-control.bitkeeper.user
Message-ID <[email protected]>
On Tue, 2004-08-24 at 11:48 +0100, Brendan Heading wrote:

> I'm trying to figure out how to build files with 
> nested dependencies, without having to check out the whole repository or 
> set it up in "bk get" mode. I also want to avoid modifying the makefile 
> so that it does not need to know magic about the files that need to be 
> checked out to perform the build. Am I trying to have my cake and eat it ?

Not necessarily.  GNU make knows how to do a get of SCCS files, and this
works quite well.  If you're using some other make variant, you might
have to specify some extra pattern rules to get this to happen, and if
the make variant doesn't support chains of implicit rules, you're
probably going to have to find another solution.  Then again, nobody in
their right mind would use a non-Linux platform's native make in
preference to GNU make, anyway :-)

In GNU make, the syntax looks like this:

%: SCCS/s.%
	get $<

Adjust to taste and serve warm.

	<b

_______________________________________________
Bitkeeper-users mailing list
[email protected]
http://bitmover.com/mailman/listinfo/bitkeeper-users
To unsubscribe from this list, go to the above URL, follow instruction at the bottom of the web page.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.