+YEAR := $(shell date +%Y)
+submission submission-main:
+ @if [ -n "`ls src/parser/*/generated 2>/dev/null`" ]; then \
+ echo 'ERROR:' >&2; \
+ echo 'ERROR: Please make maintainer-clean first.' >&2; \
+ echo 'ERROR:' >&2; \
+ exit 1; \
+ fi
+ ./autogen.sh
+ ./configure competition --disable-shared --enable-static-binary --with-cln --with-glpk
+ $(MAKE)
+ strip builds/bin/cvc4
+ $(MAKE) check
+ $(MAKE) -C test/regress/regress1 check
+ # main track
+ mkdir -p cvc4-smteval-$(YEAR)
+ cp -p builds/bin/cvc4 cvc4-smteval-$(YEAR)/cvc4
+ cp contrib/run-script-smteval2013 cvc4-smteval-$(YEAR)/run
+ chmod 755 cvc4-smteval-$(YEAR)/run
+ tar cf cvc4-smteval-$(YEAR).tar cvc4-smteval-$(YEAR)
+submission-application:
+ # application track is a separate build because it has different preprocessor #defines
+ @if [ -n "`ls src/parser/*/generated 2>/dev/null`" ]; then \
+ echo 'ERROR:' >&2; \
+ echo 'ERROR: Please make maintainer-clean first.' >&2; \
+ echo 'ERROR:' >&2; \
+ exit 1; \
+ fi
+ ./autogen.sh
+ ./configure competition --disable-shared --enable-static-binary --with-cln --with-glpk CXXFLAGS=-DCVC4_SMTCOMP_APPLICATION_TRACK CFLAGS=-DCVC4_SMTCOMP_APPLICATION_TRACK
+ $(MAKE)
+ strip builds/bin/cvc4
+ $(MAKE) check
+ $(MAKE) -C test/regress/regress1 check
+ # package the application track tarball
+ mkdir -p cvc4-application-smteval-$(YEAR)
+ cp -p builds/bin/cvc4 cvc4-application-smteval-$(YEAR)/cvc4
+ ( echo '#!/bin/sh'; \
+ echo 'exec ./cvc4 -L smt2 --no-checking --no-interactive --incremental' ) > cvc4-application-smteval-$(YEAR)/run
+ chmod 755 cvc4-application-smteval-$(YEAR)/run
+ tar cf cvc4-application-smteval-$(YEAR).tar cvc4-application-smteval-$(YEAR)
+submission-parallel:
+ # parallel track can't be built with -cln, so it's a separate build
+ @if [ -n "`ls src/parser/*/generated 2>/dev/null`" ]; then \
+ echo 'ERROR:' >&2; \
+ echo 'ERROR: Please make maintainer-clean first.' >&2; \
+ echo 'ERROR:' >&2; \
+ exit 1; \
+ fi
+ ./autogen.sh
+ ./configure competition --disable-shared --enable-static-binary --with-gmp --with-portfolio --with-glpk