|
Boost-Build : |
Subject: [Boost-build] building deb-packages using boost-build
From: Hylke (boost_at_[hidden])
Date: 2010-04-28 11:12:06
hi all,
I am trying to build packages (ubuntu .deb files) for my software.
Currently i do this from a Makefile: (simplified)
install: dependencies
(long list of custom steps here to copy binaries, create directories, prepare configs, etc)
package:
STAGEDIR=`mktemp -d` && \
$(MAKE) PREFIX=$${STAGEDIR} install && \
./make_a_package.sh $${STAGEDIR}
So, make a temporary directory, call the 'install' rule, and finalise
it. How would i go about using bjam/boost-build to do something similar?
Regards,
Hylke
ps.
I would like to get a general answer, on what approach to take, but i tried this:
rule makedeb ( pkgname : sources )
{
local stagedir = [ SHELL "echo -n `mktemp -d`" ] ;
install unusedname : sources : <location>$(stagedir)/bin ;
}
actions makedeb
{
(long list of custom steps here)
}
makedeb mypackagename : binaries ;
Somehow my 'actions' do not get called. I am probably missing something obvious.
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk