Add DESTDIR instructions when the command is "ninja install" (in LFS/lfs.xsl)
This commit is contained in:
parent
bcbecc53f9
commit
4696ddd406
1 changed files with 25 additions and 1 deletions
26
LFS/lfs.xsl
26
LFS/lfs.xsl
|
@ -845,7 +845,31 @@ DNS=</xsl:text>
|
||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:otherwise> <!-- no make in this string -->
|
<xsl:when test="contains($outputstring,'ninja ')">
|
||||||
|
<xsl:choose>
|
||||||
|
<xsl:when test="not(starts-with($outputstring,'ninja'))">
|
||||||
|
<xsl:call-template name="outputpkgdest">
|
||||||
|
<xsl:with-param name="outputstring"
|
||||||
|
select="substring-before($outputstring,'ninja')"/>
|
||||||
|
</xsl:call-template>
|
||||||
|
<xsl:call-template name="outputpkgdest">
|
||||||
|
<xsl:with-param
|
||||||
|
name="outputstring"
|
||||||
|
select="substring-after($outputstring,
|
||||||
|
substring-before($outputstring,'ninja'))"/>
|
||||||
|
</xsl:call-template>
|
||||||
|
</xsl:when>
|
||||||
|
<xsl:otherwise> <!-- ninja is the first word -->
|
||||||
|
<xsl:text>DESTDIR=$PKG_DEST ninja</xsl:text>
|
||||||
|
<xsl:call-template name="outputpkgdest">
|
||||||
|
<xsl:with-param
|
||||||
|
name="outputstring"
|
||||||
|
select="substring-after($outputstring,'ninja')"/>
|
||||||
|
</xsl:call-template>
|
||||||
|
</xsl:otherwise>
|
||||||
|
</xsl:choose>
|
||||||
|
</xsl:when>
|
||||||
|
<xsl:otherwise> <!-- no make nor ninja in this string -->
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="contains($outputstring,'>/') and
|
<xsl:when test="contains($outputstring,'>/') and
|
||||||
not(contains(substring-before($outputstring,'>/'),' /'))">
|
not(contains(substring-before($outputstring,'>/'),' /'))">
|
||||||
|
|
Reference in a new issue