1 2 3 4 5 6 7 8
#! /bin/bash [ -z $1 ] || TARGET=$1 [ -z $TARGET ] && TARGET=all for i in [012]* Demo; do echo "Building $i"; pushd $i && make clean $TARGET; popd; done