summaryrefslogtreecommitdiffstats
path: root/src/opkbuild.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/opkbuild.sh')
-rw-r--r--src/opkbuild.sh21
1 files changed, 13 insertions, 8 deletions
diff --git a/src/opkbuild.sh b/src/opkbuild.sh
index 87c2b3d..fbda51c 100644
--- a/src/opkbuild.sh
+++ b/src/opkbuild.sh
@@ -180,15 +180,10 @@ get_options()
[ -z "${opt_check_build_deps}" ] && opt_check_build_deps='true'
[ -z "${opt_uid0_cmd}" ] && opt_uid0_cmd='fakeroot'
- # Set default target and cleaning behavior.
+ # Set cleaning behavior.
if [ -n "${opt_target}" ]; then
[ -z "${opt_clean}" ] && opt_clean='false'
else
- if [ "${opt_build}" = 'full' ]; then
- opt_target='binary'
- else
- opt_target="${opt_build}"
- fi
[ -z "${opt_clean}" ] && opt_clean='true'
fi
}
@@ -308,8 +303,18 @@ setup_build()
build()
{
- ../build build
- ${opt_uid0_cmd} ../build install
+ case "${opt_target}" in
+ '')
+ ../build build
+ ${opt_uid0_cmd} ../build install
+ ;;
+ 'install'|'install-'*)
+ ${opt_uid0_cmd} ../build "${opt_target}"
+ ;;
+ *)
+ ../build "${opt_target}"
+ ;;
+ esac
ob-installdocs
ob-gencontrol