#!/bin/bash
# Copyright (c) 2000-2015 Synology Inc. All rights reserved.

if ! checkPlatformFunction SYNO_FEA_IPMITOOL; then
	SkipThisProject
	return
fi

if [ "x$NOSTRIP" = "xNOSTRIP" ]; then
	make DESTDIR="$TmpInstDir" install
else
	make DESTDIR="$TmpInstDir" install-strip
fi

if checkPlatformFunction SYNO_FEA_IE; then
        mkdir -p ${TmpInstDir}/usr/bin/
        cp src/isc_ipmitool ${TmpInstDir}/usr/bin/
fi

rm -rf "$TmpInstDir"/usr/share

