#!/bin/bash

set -e

sed -i.bak "s#/usr/local#$PREFIX#" */Makefile*

find . -name \*.a -delete
make clean
make

mkdir -p $PREFIX/bin
install reduce_src/reduce $PREFIX/bin

cp reduce_wwPDB_het_dict.txt $PREFIX/
