mirror of
https://github.com/robertkrimen/otto
synced 2025-09-28 18:45:22 +08:00
52 lines
977 B
Makefile
52 lines
977 B
Makefile
.PHONY: test assets todo fixme otto run test-all release test-synopsis
|
|
|
|
export TERST_BASE=$(PWD)
|
|
|
|
TEST := -v --run RegExp
|
|
TEST := -v --run Otto
|
|
TEST := -v --run underscore
|
|
TEST := -v --run underscoreCollection
|
|
TEST := -v --run Speed
|
|
TEST := -v --run underscoreUtility
|
|
TEST := -v --run Array_slice
|
|
TEST := -v --run Date
|
|
TEST := -v .
|
|
TEST := -v --run Lexer
|
|
TEST := -v --run Synopsis
|
|
TEST := -v --run ParseFailure
|
|
TEST := -v --run _eval
|
|
TEST := -v --run Broken
|
|
TEST := -v --run ParseSuccess
|
|
TEST := -v --run OttoError
|
|
TEST := .
|
|
|
|
test:
|
|
go test -i
|
|
go test $(TEST)
|
|
|
|
assets:
|
|
mkdir -p .assets
|
|
for file in underscore/test/*.js; do tr "\`" "_" < $$file > .assets/`basename $$file`; done
|
|
|
|
todo:
|
|
ack -l TODO *.go
|
|
|
|
fixme:
|
|
ack -l FIXME *.go
|
|
|
|
otto:
|
|
cd otto && go build -a
|
|
|
|
run:
|
|
go run -a ./otto/main.go ./otto.js
|
|
|
|
test-all:
|
|
go test .
|
|
|
|
release: test-all test-synopsis
|
|
godocdown --signature > README.markdown
|
|
|
|
test-synopsis:
|
|
cd .test && go test -v
|
|
cd .test && otto example.js
|