mirror of
https://github.com/boostorg/build.git
synced 2026-02-14 00:32:11 +00:00
Make the target option in RPM work conditionaly, as it has different syntax depending on version/os variant... yuk.
[SVN r17166]
This commit is contained in:
@@ -474,13 +474,15 @@ rule .rpm ( name : source )
|
||||
DEPENDS $(name).src.rpm : $(name).$(rpm-arch).rpm ;
|
||||
docs on $(target) = $(dist.docs:J=" ") ;
|
||||
arch on $(target) = $(rpm-arch) ;
|
||||
if $(rpm-arch) = ppc { target-opt on $(target) = --target= ; }
|
||||
else { target-opt on $(target) = "--target " ; }
|
||||
.rpm-build $(target) : $(source) ;
|
||||
.clean $(name).$(rpm-arch).rpm $(name).src.rpm ;
|
||||
}
|
||||
actions .rpm-build
|
||||
{ export BOOST_JAM_DOCS="$(docs)"
|
||||
export BOOST_JAM_TOOLSET="$(toolset)"
|
||||
rpm -ta --target=$(arch) $(>) | tee rpm.out
|
||||
rpm -ta $(target-opt)$(arch) $(>) | tee rpm.out
|
||||
cp `grep -e '^Wrote:' rpm.out | sed 's/^Wrote: //'` .
|
||||
rm -f rpm.out }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user