2016-01-16 18:47:42 +00:00
|
|
|
LIB=vdc
|
|
|
|
REQS=
|
|
|
|
ADDONS=
|
|
|
|
AUXTARGETS=
|
2013-12-14 07:43:55 +00:00
|
|
|
|
2016-01-16 18:47:42 +00:00
|
|
|
ULIB=$(shell echo $(LIB) | tr a-z A-Z)
|
|
|
|
DEPS=
|
|
|
|
TARGET=$(LIB).js
|
2013-12-14 07:43:55 +00:00
|
|
|
|
2016-01-16 18:47:42 +00:00
|
|
|
.PHONY: all
|
|
|
|
all: $(TARGET) $(AUXTARGETS)
|
2013-12-14 07:43:55 +00:00
|
|
|
|
2016-01-16 18:47:42 +00:00
|
|
|
$(TARGET) $(AUXTARGETS): %.js : %.flow.js
|
|
|
|
node -e 'process.stdout.write(require("fs").readFileSync("$<","utf8").replace(/^\s*\/\*:[^*]*\*\/\s*(\n)?/gm,"").replace(/\/\*:[^*]*\*\//gm,""))' > $@
|
2013-12-14 07:43:55 +00:00
|
|
|
|
2016-01-16 18:47:42 +00:00
|
|
|
.PHONY: clean
|
|
|
|
clean: clean-baseline
|
|
|
|
rm -f $(TARGET)
|
2013-12-14 07:43:55 +00:00
|
|
|
|
2016-01-16 18:47:42 +00:00
|
|
|
.PHONY: test mocha
|
|
|
|
test mocha: test.js $(TARGET)
|
|
|
|
mocha -R spec -t 20000
|
2013-12-14 07:43:55 +00:00
|
|
|
|
2016-01-16 18:47:42 +00:00
|
|
|
.PHONY: lint
|
|
|
|
lint: $(TARGET) $(AUXTARGETS)
|
|
|
|
jshint --show-non-errors $(TARGET) $(AUXTARGETS)
|
|
|
|
jshint --show-non-errors package.json
|
|
|
|
jscs $(TARGET) $(AUXTARGETS)
|
2013-12-14 07:43:55 +00:00
|
|
|
|
2016-01-16 18:47:42 +00:00
|
|
|
.PHONY: flow
|
|
|
|
flow: lint
|
|
|
|
flow check --all --show-all-errors
|
|
|
|
|
|
|
|
.PHONY: baseline clean-baseline
|
|
|
|
baseline:
|
|
|
|
./misc/make_baseline.sh
|
2013-12-14 07:43:55 +00:00
|
|
|
|
2016-01-16 18:47:42 +00:00
|
|
|
clean-baseline:
|
|
|
|
rm -f test_files/*.*
|