-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathMakefile
31 lines (31 loc) · 1.01 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
.PHONY: repl docs
run:
docker run -ti -v $$(pwd):/abs --net host -v ~/.abs_history:/root/.abs_history --name abs --rm abs
fmt:
go fmt ./...
build:
docker build -t abs .
bench:
CONTEXT=abs go test `go list -buildvcs=false ./... | grep -v "/js"` -bench=.
test_all: bench test
test:
# we don't want to test the JS package
CONTEXT=abs go test `go list -buildvcs=false ./... | grep -v "/js"`
test_verbose:
# this will show successful error [line:col] tests per #38
CONTEXT=abs go test `go list -buildvcs=false ./... | grep -v "/js"` -v
repl:
go run main.go
build_simple:
CGO_ENABLED=0 go build -o builds/abs main.go
release: build_simple
./builds/abs ./scripts/release.abs
docs:
cd docs && npm i && NODE_OPTIONS=--openssl-legacy-provider npm run dev
build_docs:
cd docs && npm i && NODE_OPTIONS=--openssl-legacy-provider npm run build
wasm:
GOOS=js GOARCH=wasm go build -o docs/abs.wasm js/js.go
tapes: build_simple
docker build -t abs-tapes docs/vhs
docker run -ti -v $$(pwd)/builds/abs:/usr/bin/abs -v $$(pwd):/abs abs-tapes