#!/bin/sh

# This file creates a config.txt file for inclusion in the Makefile.
# This script should be run indirectly through the 'make config'
# target (or the 'make' target the first time).

if [ ! -f make/dumbask ]; then
  echo "You should not be running this directly! Use 'make' or 'make config'."
  exit
fi

echo 'include make/unix.inc' > make/config.tmp
echo 'ALL_TARGETS := core core-examples core-headers' >> make/config.tmp
echo 'ALL_TARGETS += allegro allegro-examples allegro-headers' >> make/config.tmp
mv -f make/config.tmp make/config.txt
echo 'Configuration complete.'
