2013-11-26 15:56:58 +00:00
|
|
|
DEPS=$(wildcard bits/*.js)
|
|
|
|
TARGET=cfb.js
|
|
|
|
|
|
|
|
$(TARGET): $(DEPS)
|
|
|
|
cat $^ > $@
|
|
|
|
|
|
|
|
.PHONY: test mocha
|
|
|
|
test mocha: init
|
2013-10-26 20:20:19 +00:00
|
|
|
mocha -R spec
|
|
|
|
|
2013-11-26 15:56:58 +00:00
|
|
|
.PHONY: lint
|
2013-10-27 20:13:02 +00:00
|
|
|
lint:
|
|
|
|
jshint cfb.js
|
|
|
|
|
2013-11-26 15:56:58 +00:00
|
|
|
.PHONY: init
|
2013-10-26 20:20:19 +00:00
|
|
|
init:
|
2013-11-26 15:56:58 +00:00
|
|
|
if [ ! -e test_files ]; then git clone https://github.com/SheetJS/test_files; cd test_files; make; fi
|
|
|
|
|
|
|
|
.PHONY: clean
|
2013-10-26 20:20:19 +00:00
|
|
|
clean:
|
2013-11-26 15:56:58 +00:00
|
|
|
rm -rf $(TARGET) ./test_files/
|