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

make DESTDIR=$DebDevDir install $InstallDevLayout

rm -rf $DebDevDir$SynoBinDir
rm -rf $DebDevDir$SynoLibDir/postgresql/*.so
rm -rf $DebDevDir/usr/share
rm -rf $DebDevDir/usr/include/postgresql/server/port/win32*

if ! IsGLIBCPlatform; then
	[ -d "$DebDevBuild/$StaticInclude" ] || install -d "$DebDevBuild/$StaticInclude"
	cp -f src/include/pg_config.h $DebDevBuild/$StaticInclude/
fi
