diff --git a/.travis.yaml b/.travis.yaml index cb69c83..575d6a1 100644 --- a/.travis.yaml +++ b/.travis.yaml @@ -5,11 +5,7 @@ go: - 1.1 - tip -install: - - git submodule init - - git submodule update - - make - - go install +install: make all script: - go test ./ diff --git a/Makefile b/Makefile index 80d77c6..0ed71f3 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,12 @@ # for GNU make +all: libunqlite.a + go build + +src/unqlite.c: + git submodule init + git submodule update + libunqlite.a: src/unqlite.c src/unqlite.h gcc -c src/unqlite.c -I./src -DUNQLITE_ENABLE_THREADS=1 ar rv libunqlite.a unqlite.o