2024-03-12 20:21:59 +03:00
|
|
|
# Copyright 2024 The Sqlite Authors. All rights reserved.
|
2021-08-29 17:41:41 +03:00
|
|
|
# Use of this source code is governed by a BSD-style
|
|
|
|
# license that can be found in the LICENSE file.
|
|
|
|
|
2024-03-12 20:21:59 +03:00
|
|
|
.PHONY: all build_all_targets clean edit editor test vendor work
|
2021-08-29 17:41:41 +03:00
|
|
|
|
|
|
|
all: editor
|
2024-03-12 20:21:59 +03:00
|
|
|
golint 2>&1
|
|
|
|
staticcheck 2>&1
|
2022-11-28 13:19:39 +03:00
|
|
|
|
2021-08-29 17:41:41 +03:00
|
|
|
build_all_targets:
|
2021-11-27 17:26:58 +03:00
|
|
|
GOOS=darwin GOARCH=amd64 go test -c -o /dev/null
|
2024-03-12 20:21:59 +03:00
|
|
|
GOOS=darwin GOARCH=amd64 go build -v ./...
|
2021-11-27 17:26:58 +03:00
|
|
|
GOOS=darwin GOARCH=arm64 go test -c -o /dev/null
|
2024-03-12 20:21:59 +03:00
|
|
|
GOOS=darwin GOARCH=arm64 go build -v ./...
|
2021-11-27 17:26:58 +03:00
|
|
|
GOOS=freebsd GOARCH=amd64 go test -c -o /dev/null
|
2024-03-12 20:21:59 +03:00
|
|
|
GOOS=freebsd GOARCH=amd64 go build -v ./...
|
2022-03-07 13:08:26 +03:00
|
|
|
GOOS=freebsd GOARCH=386 go test -c -o /dev/null
|
2024-03-12 20:21:59 +03:00
|
|
|
GOOS=freebsd GOARCH=386 go build -v ./...
|
2022-11-28 13:19:39 +03:00
|
|
|
GOOS=freebsd GOARCH=arm go test -c -o /dev/null
|
2024-03-12 20:21:59 +03:00
|
|
|
GOOS=freebsd GOARCH=arm go build -v ./...
|
2022-11-28 13:19:39 +03:00
|
|
|
GOOS=freebsd GOARCH=arm64 go test -c -o /dev/null
|
2024-03-12 20:21:59 +03:00
|
|
|
GOOS=freebsd GOARCH=arm64 go build -v ./...
|
2021-11-27 17:26:58 +03:00
|
|
|
GOOS=linux GOARCH=386 go test -c -o /dev/null
|
2024-03-12 20:21:59 +03:00
|
|
|
GOOS=linux GOARCH=386 go build -v ./...
|
2021-11-27 17:26:58 +03:00
|
|
|
GOOS=linux GOARCH=amd64 go test -c -o /dev/null
|
2024-03-12 20:21:59 +03:00
|
|
|
GOOS=linux GOARCH=amd64 go build -v ./...
|
2021-11-27 17:26:58 +03:00
|
|
|
GOOS=linux GOARCH=arm go test -c -o /dev/null
|
2024-03-12 20:21:59 +03:00
|
|
|
GOOS=linux GOARCH=arm go build -v ./...
|
2021-11-27 17:26:58 +03:00
|
|
|
GOOS=linux GOARCH=arm64 go test -c -o /dev/null
|
2024-03-12 20:21:59 +03:00
|
|
|
GOOS=linux GOARCH=arm64 go build -v ./...
|
2024-04-17 19:10:51 +03:00
|
|
|
GOOS=linux GOARCH=loong64 go test -c -o /dev/null
|
|
|
|
GOOS=linux GOARCH=loong64 go build -v ./...
|
2022-05-18 17:58:26 +03:00
|
|
|
GOOS=linux GOARCH=ppc64le go test -c -o /dev/null
|
2024-03-12 20:21:59 +03:00
|
|
|
GOOS=linux GOARCH=ppc64le go build -v ./...
|
2022-04-24 13:26:22 +03:00
|
|
|
GOOS=linux GOARCH=riscv64 go test -c -o /dev/null
|
2024-03-12 20:21:59 +03:00
|
|
|
GOOS=linux GOARCH=riscv64 go build -v ./...
|
2021-11-27 17:26:58 +03:00
|
|
|
GOOS=linux GOARCH=s390x go test -c -o /dev/null
|
2024-03-12 20:21:59 +03:00
|
|
|
GOOS=linux GOARCH=s390x go build -v ./...
|
2021-11-27 17:26:58 +03:00
|
|
|
GOOS=netbsd GOARCH=amd64 go test -c -o /dev/null
|
2024-03-12 20:21:59 +03:00
|
|
|
GOOS=netbsd GOARCH=amd64 go build -v ./...
|
2022-03-07 13:08:26 +03:00
|
|
|
GOOS=openbsd GOARCH=amd64 go test -c -o /dev/null
|
2024-03-12 20:21:59 +03:00
|
|
|
GOOS=openbsd GOARCH=amd64 go build -v ./...
|
2022-11-28 13:19:39 +03:00
|
|
|
GOOS=openbsd GOARCH=arm64 go test -c -o /dev/null
|
2024-03-12 20:21:59 +03:00
|
|
|
GOOS=openbsd GOARCH=arm64 go build -v ./...
|
2024-09-28 01:53:36 +03:00
|
|
|
GOOS=windows GOARCH=386 go test -c -o /dev/null
|
|
|
|
GOOS=windows GOARCH=386 go build -v ./...
|
2021-11-27 17:26:58 +03:00
|
|
|
GOOS=windows GOARCH=amd64 go test -c -o /dev/null
|
2024-03-12 20:21:59 +03:00
|
|
|
GOOS=windows GOARCH=amd64 go build -v ./...
|
2022-05-02 16:05:18 +03:00
|
|
|
GOOS=windows GOARCH=arm64 go test -c -o /dev/null
|
2024-03-12 20:21:59 +03:00
|
|
|
GOOS=windows GOARCH=arm64 go build -v ./...
|
2021-08-29 17:41:41 +03:00
|
|
|
echo done
|
|
|
|
|
|
|
|
clean:
|
2024-03-12 20:21:59 +03:00
|
|
|
rm -f log-* cpu.test mem.test *.out go.work*
|
2021-08-29 17:41:41 +03:00
|
|
|
go clean
|
|
|
|
|
|
|
|
edit:
|
|
|
|
@touch log
|
2024-12-04 12:33:09 +03:00
|
|
|
@if [ -f "Session.vim" ]; then gvim -S & else gvim -p Makefile go.mod builder.json all_test.go vendor_libsqlite3.go & fi
|
2021-08-29 17:41:41 +03:00
|
|
|
|
|
|
|
editor:
|
2024-03-12 20:21:59 +03:00
|
|
|
gofmt -l -s -w . 2>&1 | tee log-editor
|
|
|
|
go test -c -o /dev/null 2>&1 | tee -a log-editor
|
|
|
|
go build -v -o /dev/null ./... 2>&1 | tee -a log-editor
|
|
|
|
go build -o /dev/null vendor_libsqlite3.go
|
|
|
|
|
|
|
|
test:
|
2024-09-28 01:53:36 +03:00
|
|
|
go test -v -timeout 24h 2>&1 | tee log-test
|
2024-03-12 20:21:59 +03:00
|
|
|
|
|
|
|
vendor:
|
|
|
|
go run vendor_libsqlite3.go && make build_all_targets
|
|
|
|
make build_all_targets
|
|
|
|
|
|
|
|
work:
|
|
|
|
rm -f go.work*
|
|
|
|
go work init
|
|
|
|
go work use .
|
|
|
|
go work use ../cc/v4
|
|
|
|
go work use ../ccgo/v3
|
|
|
|
go work use ../ccgo/v4
|
|
|
|
go work use ../libc
|
|
|
|
go work use ../libtcl8.6
|
|
|
|
go work use ../libsqlite3
|
|
|
|
go work use ../libz
|