#!/bin/sh -e
export DESTDIR="$1"
export PREFIX=/usr
cc -o make *.c
./make
./make test
mkdir -p "$1/usr/bin"
cp -f make "$1/usr/bin/pdpmake"
ln -s pdpmake "$1/usr/bin/make"