20 lines
712 B
Makefile
20 lines
712 B
Makefile
clean:
|
|
-rm -r build
|
|
|
|
test:
|
|
go test ./ucl/...
|
|
|
|
site: clean
|
|
mkdir build
|
|
mkdir build/site
|
|
cp -r _site/* build/site/.
|
|
go run ./cmd/gendocs/main.go ./_docs/index.md build/site/index.html
|
|
go run ./cmd/gendocs/main.go ./_docs/mod/index.md build/site/mod/index.html
|
|
go run ./cmd/gendocs/main.go ./_docs/mod/core.md build/site/mod/core/index.html
|
|
go run ./cmd/gendocs/main.go ./_docs/mod/csv.md build/site/mod/csv/index.html
|
|
go run ./cmd/gendocs/main.go ./_docs/mod/fs.md build/site/mod/fs/index.html
|
|
go run ./cmd/gendocs/main.go ./_docs/mod/os.md build/site/mod/os/index.html
|
|
GOOS=js GOARCH=wasm go build -o build/site/playwasm.wasm ./cmd/playwasm/.
|
|
|
|
site-deploy: site
|
|
netlify deploy --dir build/site --prod
|