#!/bin/sh
mkdir -p build

MAJ=1
MIN=18

ALL="MAINLH MAINLH-DOTC-1.2 MAINLH-DOTC-1.5"

for V in $ALL
do
   echo "Building $V..."

   if [ "$1" = "sweep" ]
   then
      VERSION_MAJOR=${MAJ} VERSION_MINOR=${MIN} VARIANT=${V} make clean sweep > build/${V}.${MAJ}.${MIN}_sweep.log
   else
      VERSION_MAJOR=${MAJ} VERSION_MINOR=${MIN} VARIANT=${V} make clean all > build/${V}.${MAJ}.${MIN}.log
      cp outflow/vicii.timing.rpt build/${V}.${MAJ}.${MIN}.rpt
   fi
done
