1
0
mirror of https://github.com/robertkrimen/otto synced 2025-09-28 18:45:22 +08:00
otto/Makefile
2012-10-09 18:58:11 -07:00

51 lines
944 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 $(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-synopsis
godocdown > README.markdown
test-synopsis:
cd .test && go test -v
cd .test && otto example.js