#!/bin/sh

. config/options

cd $BUILD/$1*

make

install_dir="$PWD/.install"
install_dir_debug="$PWD/.install-debuginfo"

rm -rf "$install_dir"
mkdir -p "$install_dir/usr/bin"
cp -P $1 "$install_dir/usr/bin"

strip_bins "$install_dir/usr" "$install_dir_debug/usr/lib/debug"
