#!/bin/sh

if [ ! $TARGET ]; then
	echo You need to set the TARGET environment variable.
	echo Try something like this:
	echo 
	echo TARGET=native ./configure
	echo TARGET=gp2x ./configure
	exit 0;
fi

if [ ! -e Makefile.$TARGET ]; then
	echo Error! Makefile.$TARGET not found.
	exit 0;
fi

echo Creating Makefile...
cat Makefile.$TARGET Makefile.stub > Makefile
