Skip to content

Commit 8fab58a

Browse files
committed
configure: use xbps-src-make if available
1 parent a85ceb7 commit 8fab58a

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

configure

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,23 @@ for tb in $_TOBUILD; do
164164
concat "`getlink $tb`"
165165
done
166166

167+
if [ "$(command -v xbps-src-make 2>/dev/null)" ]; then
168+
xbps-src-make \
169+
-distdir "$DISTDIR" \
170+
-hostdir "$HOSTDIR" \
171+
-masterdir "$MASTERDIR" \
172+
${XBPS_ARCH:+-arch ${XBPS_ARCH}} \
173+
${CROSS_ARCH:+-cross ${CROSS_ARCH}} \
174+
-flags "$CFG_LOCAL $CFG_OVERLAYFS -L $CFG_CMDLINE" \
175+
$TOBUILD \
176+
>Makefile
177+
if [ $? -eq 0 ]; then
178+
printf "INFO: 'Makefile' generated.\n"
179+
printf "INFO: Type 'make'\n"
180+
exit 0
181+
fi
182+
fi
183+
167184
printf "INFO: Removing old Makefile (if any)...\n"
168185
[ -f Makefile ] && rm -f Makefile
169186
touch Makefile

0 commit comments

Comments
 (0)