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

case ${CleanOnly} in
	[Yy][Ee][Ss])
		return
		;;
esac

make DESTDIR=$DebDevDir install

#remove no need files
RMFOLDERS="$DebDevDir$SynoBinDir $DebDevDir$SynoLibDir/libgphoto2 $DebDevDir$SynoLibDir/libgphoto2_port $DebDevDir$SynoLibDir/libgphoto2/2.1.99 $DebDevDir/usr/syno/share"
LAFILES="$DebDevDir$SynoLibDir"

rm -rf $RMFOLDERS
rm -f $LAFILES/*.la
