From: Michael J.M. Wagner Date: Mon, 17 Oct 2022 19:03:30 +0000 (+0200) Subject: posaune X-Git-Tag: v_0.0-7~8 X-Git-Url: http://wagnertech.de/git?p=projects.git;a=commitdiff_plain;h=cb90cf5532bd7921186006be739248887233ed4d posaune --- diff --git a/tools/make/configure b/tools/make/configure index 2eb9f91..21cf3f8 100755 --- a/tools/make/configure +++ b/tools/make/configure @@ -195,7 +195,7 @@ do ;; d) compile_dir=$OPTARG ;; - d) compile_target=$OPTARG + e) compile_target=$OPTARG ;; i) install_dir=$OPTARG ;; @@ -228,12 +228,6 @@ then exit 7 fi -# read build configuration, if existing -#if [ -f debian/$paket.conf ] -#then -# . debian/$paket.conf -#fi - if [ -n "$ARCH" -a -n "$cross" ] then echo "invalid options: supply -a for multiarch or -C for explicit cross compile environment" diff --git a/tools/make/mconfigure b/tools/make/mconfigure index 0d053b1..466eb15 100755 --- a/tools/make/mconfigure +++ b/tools/make/mconfigure @@ -107,7 +107,7 @@ fi # perform configure . debian/$paket.conf -if [ -n $old_build ] +if [ -n "$old_build" ] then rm debian/$paket.conf fi @@ -125,6 +125,12 @@ then exit 51 fi configure_args="$configure_args -c $compile_type" + if [ -z "$compile_target" ] + then + echo "compile_target required in $paket.conf" + exit 52 + fi + configure_args="$configure_args -e $compile_target" fi if [ "$target_type" == "FILE" ] then @@ -213,3 +219,4 @@ fi # build package debian/rules pack +