Debian Codegraph @

Makefile

raw
1 # Copyright 2024 The Sqlite Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style
3 # license that can be found in the LICENSE file.
4
5 .PHONY: all build_all_targets clean edit editor test vendor work
6
7 all: editor
8 golint 2>&1
9 staticcheck 2>&1
10
11 build_all_targets:
12 GOOS=darwin GOARCH=amd64 go test -c -o /dev/null
13 GOOS=darwin GOARCH=amd64 go build -v ./...
14 GOOS=darwin GOARCH=arm64 go test -c -o /dev/null
15 GOOS=darwin GOARCH=arm64 go build -v ./...
16 GOOS=freebsd GOARCH=amd64 go test -c -o /dev/null
17 GOOS=freebsd GOARCH=amd64 go build -v ./...
18 # GOOS=freebsd GOARCH=386 go test -c -o /dev/null
19 # GOOS=freebsd GOARCH=386 go build -v ./...
20 # GOOS=freebsd GOARCH=arm go test -c -o /dev/null
21 # GOOS=freebsd GOARCH=arm go build -v ./...
22 GOOS=freebsd GOARCH=arm64 go test -c -o /dev/null
23 GOOS=freebsd GOARCH=arm64 go build -v ./...
24 GOOS=linux GOARCH=386 go test -c -o /dev/null
25 GOOS=linux GOARCH=386 go build -v ./...
26 GOOS=linux GOARCH=amd64 go test -c -o /dev/null
27 GOOS=linux GOARCH=amd64 go build -v ./...
28 GOOS=linux GOARCH=arm go test -c -o /dev/null
29 GOOS=linux GOARCH=arm go build -v ./...
30 GOOS=linux GOARCH=arm64 go test -c -o /dev/null
31 GOOS=linux GOARCH=arm64 go build -v ./...
32 GOOS=linux GOARCH=loong64 go test -c -o /dev/null
33 GOOS=linux GOARCH=loong64 go build -v ./...
34 GOOS=linux GOARCH=ppc64le go test -c -o /dev/null
35 GOOS=linux GOARCH=ppc64le go build -v ./...
36 GOOS=linux GOARCH=riscv64 go test -c -o /dev/null
37 GOOS=linux GOARCH=riscv64 go build -v ./...
38 GOOS=linux GOARCH=s390x go test -c -o /dev/null
39 GOOS=linux GOARCH=s390x go build -v ./...
40 # GOOS=netbsd GOARCH=amd64 go test -c -o /dev/null
41 # GOOS=netbsd GOARCH=amd64 go build -v ./...
42 GOOS=openbsd GOARCH=amd64 go test -c -o /dev/null
43 GOOS=openbsd GOARCH=amd64 go build -v ./...
44 GOOS=openbsd GOARCH=arm64 go test -c -o /dev/null
45 GOOS=openbsd GOARCH=arm64 go build -v ./...
46 GOOS=windows GOARCH=386 go test -c -o /dev/null
47 GOOS=windows GOARCH=386 go build -v ./...
48 GOOS=windows GOARCH=amd64 go test -c -o /dev/null
49 GOOS=windows GOARCH=amd64 go build -v ./...
50 GOOS=windows GOARCH=arm64 go test -c -o /dev/null
51 GOOS=windows GOARCH=arm64 go build -v ./...
52 echo done
53
54 clean:
55 rm -f log-* cpu.test mem.test *.out go.work*
56 go clean
57
58 edit:
59 @if [ -f "Session.vim" ]; then gvim -S & else gvim -p Makefile go.mod builder.json all_test.go & fi
60
61 editor:
62 go test -c -o /dev/null
63 go build -v -o /dev/null ./...
64 cd vendor_libsqlite3 && go build -o /dev/null main.go
65
66 test:
67 go test -v -timeout 24h
68
69 vendor:
70 cd vendor_libsqlite3 && go build -o ../vendor main.go
71 ./vendor
72 rm -f vendor
73 make build_all_targets
74 make build_all_targets
75
76 work:
77 rm -f go.work*
78 go work init
79 go work use .
80 go work use ../cc/v4
81 go work use ../ccgo/v3
82 go work use ../ccgo/v4
83 go work use ../libc
84 go work use ../libtcl8.6
85 go work use ../libsqlite3
86 go work use ../libz