view build-data.sh @ 45:ac7f374dfe00

Remove makefiles that will not be used.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 04 Feb 2015 18:09:41 +0200
parents 9cbb03e85597
children 554e3f02ba6f
line wrap: on
line source

#!/bin/sh
. ./build.cfg
CPWD=`pwd`
CPACKED="$CPWD/packed.bin"

if test ! -x "$CPACKED"; then
	make -f Makefile clean
	make -f Makefile EXEEXT=".bin" BINPATH="$CPWD/" "$CPACKED"
fi

cd "$CPWD/data" && $CPACKED -c -p "$CPWD/exe/$CPACKFILE" *

if test ! -e "$CPWD/$CPACKFILE"; then
	ln -s "$CPWD/exe/$CPACKFILE" "$CPWD/$CPACKFILE"
fi