2014-03-20 10:19:37 +00:00
|
|
|
ISSO_JS_SRC := $(shell find isso/js/app -type f) $(shell ls isso/js/*.js | grep -vE "(min|dev)")
|
|
|
|
ISSO_JS_DST := isso/js/embed.min.js isso/js/embed.dev.js isso/js/count.min.js isso/js/count.dev.js
|
|
|
|
|
|
|
|
ISSO_CSS_DST := isso/css/isso.css
|
|
|
|
ISSO_CSS_SRC := isso/css/isso.scss
|
|
|
|
ISSO_CSS_SRC_DEPS := $(shell find isso/css -type f | grep .scss)
|
2014-03-19 14:58:40 +00:00
|
|
|
|
|
|
|
RST := $(shell find docs/ -type f -name '*.rst')
|
|
|
|
MAN := man/man1/isso.1 man/man5/isso.conf.5
|
|
|
|
|
2014-03-25 15:08:55 +00:00
|
|
|
WWW := docs/index.html share/isso.conf $(wildcard docs/_static/*)
|
2014-03-19 14:58:40 +00:00
|
|
|
CSS := docs/_static/css/site.css
|
|
|
|
|
|
|
|
all: man js site
|
2013-10-31 10:19:28 +00:00
|
|
|
|
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-20 10:19:37 +00:00
|
|
|
${ISSO_CSS_DST}: $(ISSO_CSS_SRC_DEPS)
|
|
|
|
scss --no-cache $(ISSO_CSS_SRC) $@
|
|
|
|
|
|
|
|
isso/js/%.min.js: $(ISSO_JS_SRC) $(ISSO_CSS_DST)
|
2014-03-19 14:58:40 +00:00
|
|
|
r.js -o isso/js/build.$*.js out=$@
|
|
|
|
|
2014-03-20 10:19:37 +00:00
|
|
|
isso/js/%.dev.js: $(ISSO_JS_SRC) $(ISSO_CSS_DST)
|
2014-03-19 14:58:40 +00:00
|
|
|
r.js -o isso/js/build.$*.js optimize="none" out=$@
|
2013-10-31 10:19:28 +00:00
|
|
|
|
2014-03-20 10:19:37 +00:00
|
|
|
js: $(ISSO_JS_DST)
|
|
|
|
css: $(ISSO_CSS_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:
|
2014-03-20 10:19:37 +00:00
|
|
|
rm -f $(MAN) $(CSS) $(ISSO_JS_DST) $(ISSO_CSS_DST)
|
2014-03-19 14:58:40 +00:00
|
|
|
|
2014-03-20 10:19:37 +00:00
|
|
|
.PHONY: clean site man init js css
|
2014-03-19 14:58:40 +00:00
|
|
|
|