deps:
	git submodule init
	git submodule update
	npm install -d

build:
	mkdir -p build/js
	mkdir -p build/css
	./node_modules/.bin/uglifyjs --comments \
		-o build/js/bootstrap-datetimepicker.min.js \
	       	src/js/bootstrap-datetimepicker.js
	./node_modules/.bin/lessc \
	       	src/less/build.less \
	       	build/css/bootstrap-datetimepicker.css
	./node_modules/.bin/lessc -x \
	       	src/less/build.less \
	       	build/css/bootstrap-datetimepicker.min.css

clean:
	rm -rf build

.PHONY: deps build clean test
