stress-ng: update to 0.18.09.
[void-pkg.git] / common / build-style / configure.sh
blob8fe327507d9e8f697717243203bcfc4dc9591737
2 # This helper is for templates using configure scripts (not generated
3 # by the GNU autotools).
5 do_configure() {
6 : ${configure_script:=./configure}
8 ${configure_script} ${configure_args}
11 do_build() {
12 : ${make_cmd:=make}
14 ${make_cmd} ${makejobs} ${make_build_args} ${make_build_target}
17 do_check() {
18 if [ -z "$make_cmd" ] && [ -z "$make_check_target" ]; then
19 if make -q check 2>/dev/null; then
21 else
22 if [ $? -eq 2 ]; then
23 msg_warn 'No target to "make check".\n'
24 return 0
29 : ${make_cmd:=make}
30 : ${make_check_target:=check}
32 ${make_check_pre} ${make_cmd} ${makejobs} ${make_check_args} ${make_check_target}
35 do_install() {
36 : ${make_cmd:=make}
37 : ${make_install_target:=install}
39 ${make_cmd} DESTDIR=${DESTDIR} ${make_install_args} ${make_install_target}