Skip to content

Commit

Permalink
fix parallel builds
Browse files Browse the repository at this point in the history
  • Loading branch information
neoaggelos committed Feb 27, 2024
1 parent 1c165d0 commit 2719825
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,29 +23,32 @@ go.bench.dqlite:
## Static Builds
static: bin/static/k8s-dqlite bin/static/dqlite

bin/static/k8s-dqlite: $(GO_SOURCES)
deps/static/lib/libdqlite.a:
./hack/static-dqlite.sh

bin/static/k8s-dqlite: deps/static/lib/libdqlite.a $(GO_SOURCES)
mkdir -p bin/static
./hack/static-go-build.sh -o bin/static/k8s-dqlite ./k8s-dqlite.go

bin/static/dqlite:
bin/static/dqlite: deps/static/lib/libdqlite.a
mkdir -p bin/static
rm -rf build/go-dqlite
git clone https://github.com/canonical/go-dqlite --depth 1 -b v1.20.0 build/go-dqlite
cd build/go-dqlite && ../../hack/static-go-build.sh -o ../../bin/static/dqlite ./cmd/dqlite

## Dynamic Builds
dynamic: bin/dynamic/k8s-dqlite bin/dynamic/dqlite bin/dynamic/lib/libdqlite.so
dynamic: bin/dynamic/k8s-dqlite bin/dynamic/dqlite

bin/dynamic/lib/libdqlite.so:
mkdir -p bin/dynamic/lib
./hack/dynamic-dqlite.sh
cp -rv ./deps/dynamic/lib/* ./bin/dynamic/lib/

bin/dynamic/k8s-dqlite: $(GO_SOURCES)
bin/dynamic/k8s-dqlite: bin/dynamic/lib/libdqlite.so $(GO_SOURCES)
mkdir -p bin/dynamic
./hack/dynamic-go-build.sh -o bin/dynamic/k8s-dqlite ./k8s-dqlite.go

bin/dynamic/dqlite:
bin/dynamic/dqlite: bin/dynamic/lib/libdqlite.so
mkdir -p bin/dynamic
rm -rf build/go-dqlite
git clone https://github.com/canonical/go-dqlite --depth 1 -b v1.20.0 build/go-dqlite
Expand Down

0 comments on commit 2719825

Please sign in to comment.