1
FILES=$(shell bzr ls -RV -k file | grep -v assets/ | grep -v app/templates.js | grep -v server.js)
2
NODE_TARGETS=node_modules/chai node_modules/d3 node_modules/jshint \
4
TEMPLATE_TARGETS=app/templates/charm-collection.handlebars \
5
app/templates/notifications_overview.handlebars \
6
app/templates/service-constraints.handlebars \
7
app/templates/service-relations.handlebars app/templates/charm.handlebars \
8
app/templates/overview.handlebars app/templates/service.handlebars \
9
app/templates/unit.handlebars app/templates/notifications.handlebars \
10
app/templates/service-config.handlebars \
11
app/templates/service-header.partial
15
app/templates.js: $(TEMPLATE_TARGETS) bin/generateTemplates
16
@./bin/generateTemplates
18
$(NODE_TARGETS): package.json
6
21
@ln -sf `pwd`/node_modules/yui ./app/assets/javascripts/
7
22
@ln -sf `pwd`/node_modules/d3/d3.v2* ./app/assets/javascripts/
8
@./bin/generateTemplates
11
@node_modules/jshint/bin/hint --config=jshint.config `bzr ls -RV -k file | grep -v assets/ | grep -v app/templates.js`
24
install: $(NODE_TARGETS) app/templates.js
26
lint: virtualenv/bin/gjslint node_modules/jshint
27
@virtualenv/bin/gjslint --strict --nojsdoc --custom_jsdoc_tags=property,default,since --jslint_error=all $(FILES)
28
@node_modules/jshint/bin/hint --config=jshint.config $(FILES)
30
virtualenv/bin/gjslint virtualenv/bin/fixjsstyle:
31
@virtualenv virtualenv
32
@virtualenv/bin/easy_install archives/closure_linter-latest.tar.gz
34
beautify: virtualenv/bin/fixjsstyle
35
@virtualenv/bin/fixjsstyle --strict --nojsdoc --jslint_error=all $(FILES)