js-codepage/Makefile
SheetJS 0121708499 version bump 0.6.0: windows support
- MakeEncoding.cs program pulls from .NET encodings (tested with Windows 7)
  (outputs stored at dotnet/out and misc/err)
- Many new codepages and improvements
- coverage + coveralls
- better environment handling (h/t @xch89820)
- cpexcel.js for the formats recognized by excel
- decode endian option removed (implicit from codepage definition)
NOTE: utf7 encode can be more space efficient
2014-04-14 13:45:36 -07:00

44 lines
863 B
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
$(TARGETS) 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: lint
lint:
jshint --show-non-errors $(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 $$!