js-codepage/Makefile
SheetJS 93513b6e52 version bump 1.3.0: performance
- more specializations in cptable
- removed functional badnesses in cptable
- bits reworked to minimize functional impact (which caused deopts)

some loss in coverage due to standard codepages missing astral characters
2014-06-26 01:54:13 -04:00

59 lines
1.2 KiB
Makefile

SHELL=/bin/bash
VOC=voc
TARGETS=cptable.js cputils.js cpexcel.js sbcs.js
.PHONY: js voc
voc test.js: codepage.md
$(VOC) codepage.md
js: make.sh codepage.md
bash make.sh <(awk -F, '$$3=="1"' pages.csv) sbcs.js cptable
bash make.sh excel.csv cpexcel.js cptable
bash make.sh
.PHONY: init
init:
bash misc/init.sh
.PHONY: clean
clean:
rm -f make.sh .vocrc *.csv bits/*.js
.PHONY: test mocha
test mocha: test.js
mocha -R spec
.PHONY: prof
prof:
cat misc/prof.js test.js > prof.js
node --prof prof.js
.PHONY: lint
lint:
jshint --show-non-errors $(TARGETS)
jscs $(TARGETS)
.PHONY: cov cov-spin
cov: misc/coverage.html
cov-spin:
make cov & bash misc/spin.sh $$!
misc/coverage.html: test.js
mocha --require blanket -R html-cov > $@
.PHONY: coveralls coveralls-spin
coveralls:
mocha --require blanket --reporter mocha-lcov-reporter | ./node_modules/coveralls/bin/coveralls.js
coveralls-spin:
make coveralls & bash misc/spin.sh $$!
.PHONY: dist
dist: dist/cpexcel.full.js dist/cptable.full.js dist/sbcs.full.js
cp $(TARGETS) dist/
cp LICENSE dist/
.PHONY: dist/cpexcel.full.js dist/cptable.full.js dist/sbcs.full.js
dist/cpexcel.full.js dist/cptable.full.js dist/sbcs.full.js : dist/%.full.js: %.js cputils.js
cat $^ > $@