view build-all.sh @ 34:b51164a0c0f9

Move listing of targets to end
author Chris Cannam <c.cannam@qmul.ac.uk>
date Fri, 11 Nov 2016 11:30:53 +0000
parents 935214f16f91
children 5383956f326d
line wrap: on
line source
#!/bin/bash

clean=""
if [ "$1" = "clean" ]; then
    clean=yes
fi

set -eu

for x in *; do
    if [ -d "$x" ] && [ -f "$x/Makefile" ]; then
	if [ -n "$clean" ]; then
	    make -C "$x" clean
	fi
        make -C "$x" em
    fi
done

for x in *; do
    if [ -d "$x" ] && [ -f "$x/Makefile" ]; then
	echo
        make -C "$x" test
    fi
done

echo
echo "All done"

echo "Outputs:"
ls -l */*.js