1SHELL := bash 2 3DB_NAME ?= ql-test.db 4 5export DB_NAME 6 7build: 8 go build && go install 9 10require-client: 11 @if [ -z "$$(which ql)" ]; then \ 12 echo 'Missing "ql" command. Please install the QL cli tool and try again.' && \ 13 exit 1; \ 14 fi 15 16reset-db: require-client 17 rm -f $(DB_NAME) 18 19test: reset-db 20 go test -v 21 22test-extended: test 23