[jamming] struggling with header install jam rules

Craig Allsop callsop at sceptre.net
Mon Nov 29 14:55:16 PST 2004


Hi.

 

So it looks like:

 

SOURCE = a.cpp b.cpp c.cpp ;

HEADERS = $(SOURCE:BS=.h) ;

 

You probably need this to tell jam where to look for these new names
(assuming headers are local to the jamfile):

 

SEARCH on $(HEADERS) = $(SUBDIR) ;

 

Then..

 

InstallFile /usr/local : $(HEADERS) ;

 

Craig.

 

-----Original Message-----
From: jamming-admin at perforce.com [mailto:jamming-admin at perforce.com] On
Behalf Of ANDREW MARLOW, BLOOMBERG/ LONDON OF
Sent: Friday, 26 November 2004 11:35 PM
To: JAMMING at perforce.com
Subject: [jamming] struggling with header install jam rules

 

Hello Jammers,

 

I am struggling to form the jam rules that will

allow me to copy headers to an install directory.

I have a list of .cpp files, which is needed for

the compilations. I want to generate the names of

the .h files from this and install them to a

configurable dir, e.g /usr/local.

 

I can generate the target names by gristing the

source name and subsituting .h for .h.

However, I need the full source name otherwise

it says "dont know how to make foo.h".

 

Regards,

 

Andrew M.

 

 

_______________________________________________

jamming mailing list  -  jamming at perforce.com

http://maillist.perforce.com/mailman/listinfo/jamming

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://maillist.perforce.com/pipermail/jamming/attachments/20041130/56b0a838/attachment-0001.html>


More information about the jamming mailing list