isso/Makefile

41 lines
1.0 KiB
Makefile
Raw Normal View History

2014-03-19 14:58:40 +00:00
ISSO_SRC := $(shell find isso/js/app -type f) $(shell ls isso/js/*.js | grep -vE "(min|dev)")
ISSO_DST := isso/js/embed.min.js isso/js/embed.dev.js isso/js/count.min.js isso/js/count.dev.js
RST := $(shell find docs/ -type f -name '*.rst')
MAN := man/man1/isso.1 man/man5/isso.conf.5
WWW := docs/index.html docs/isso.example.cfg $(wildcard docs/_static/*)
CSS := docs/_static/css/site.css
all: man js site
2014-02-03 10:00:11 +00:00
init:
2014-02-03 10:19:21 +00:00
(cd isso/js; bower install almond requirejs requirejs-text)
2014-02-03 10:00:11 +00:00
2014-03-19 14:58:40 +00:00
isso/js/%.min.js: $(ISSO_SRC)
r.js -o isso/js/build.$*.js out=$@
isso/js/%.dev.js: $(ISSO_SRC)
r.js -o isso/js/build.$*.js optimize="none" out=$@
2014-03-19 14:58:40 +00:00
js: $(ISSO_DST)
2014-02-03 10:00:11 +00:00
2014-03-19 14:58:40 +00:00
man: $(RST)
sphinx-build -b man docs/ man/
${CSS}: docs/_static/css/site.scss
scss --no-cache $< $@
site: $(RST) $(WWW) $(CSS)
cd docs && sphinx-build -b dirhtml . _build/html
2013-11-24 20:43:57 +00:00
2013-12-18 11:51:34 +00:00
coverage:
nosetests --with-doctest --with-doctest-ignore-unicode --with-coverage \
--cover-package=isso --cover-html isso/ specs/
2014-03-19 14:58:40 +00:00
clean:
rm -f $(MAN) $(CSS) $(ISSO_DST)
.PHONY: clean site man init js