Add make variable for r.js, so it can easily be overriden.

This is useful for platforms like Debian that don't ship with r.js in
the path.
This commit is contained in:
Jelmer Vernooij 2016-02-25 04:22:55 +00:00
parent 6971f14233
commit ba43de3f9b
No known key found for this signature in database
GPG Key ID: 9A2D24A504D1E9F8

View File

@ -25,6 +25,8 @@ DOCS_MAN_DST := man/man1/isso.1 man/man5/isso.conf.5
DOCS_HTML_DST := docs/_build/html DOCS_HTML_DST := docs/_build/html
RJS = r.js
all: man js site all: man js site
init: init:
@ -37,10 +39,10 @@ check:
-@python3 -m pyflakes $(ISSO_PY_SRC) -@python3 -m pyflakes $(ISSO_PY_SRC)
isso/js/%.min.js: $(ISSO_JS_SRC) $(ISSO_CSS) isso/js/%.min.js: $(ISSO_JS_SRC) $(ISSO_CSS)
r.js -o isso/js/build.$*.js out=$@ $(RJS) -o isso/js/build.$*.js out=$@
isso/js/%.dev.js: $(ISSO_JS_SRC) $(ISSO_CSS) isso/js/%.dev.js: $(ISSO_JS_SRC) $(ISSO_CSS)
r.js -o isso/js/build.$*.js optimize="none" out=$@ $(RJS) -o isso/js/build.$*.js optimize="none" out=$@
js: $(ISSO_JS_DST) js: $(ISSO_JS_DST)