Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(452)

Side by Side Diff: Makefile

Issue 6823057: 'make server' should not always run yuidoc
Patch Set: 'make server' should not always run yuidoc Created 13 years ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | README » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 FILES=$(shell bzr ls -RV -k file | grep -v assets/ | grep -v app/templates.js | grep -v server.js) 1 JSFILES=$(shell bzr ls -RV -k file | grep -E -e '.+\.js(on)?$$|generateTemplates $$' | grep -Ev -e '^manifest\.json$$' -e '^test/assets/' -e '^app/assets/javascr ipts/reconnecting-websocket.js$$' -e '^server.js$$')
benji 2012/10/31 12:43:02 Do we want to include any assets? It seems to me
2
2 # After a successful "make" run, the NODE_TARGETS list can be regenerated with 3 # After a successful "make" run, the NODE_TARGETS list can be regenerated with
3 # this command (and then manually pasted in here): 4 # this command (and then manually pasted in here):
4 # find node_modules -maxdepth 1 -mindepth 1 -type d -printf 'node_modules/%f ' 5 # find node_modules -maxdepth 1 -mindepth 1 -type d -printf 'node_modules/%f '
5 NODE_TARGETS=node_modules/minimatch node_modules/cryptojs \ 6 NODE_TARGETS=node_modules/minimatch node_modules/cryptojs \
6 node_modules/yuidocjs node_modules/chai node_modules/less \ 7 node_modules/yuidocjs node_modules/chai node_modules/less \
7 node_modules/.bin node_modules/node-markdown node_modules/rimraf \ 8 node_modules/.bin node_modules/node-markdown node_modules/rimraf \
8 node_modules/mocha node_modules/d3 node_modules/graceful-fs \ 9 node_modules/mocha node_modules/d3 node_modules/graceful-fs \
9 node_modules/should node_modules/jshint node_modules/expect.js \ 10 node_modules/should node_modules/jshint node_modules/expect.js \
10 node_modules/express node_modules/yui node_modules/yuidoc \ 11 node_modules/express node_modules/yui node_modules/yuidoc \
11 node_modules/grunt node_modules/node-spritesheet 12 node_modules/grunt node_modules/node-spritesheet
12 TEMPLATE_TARGETS=$(shell bzr ls -k file app/templates) 13 TEMPLATE_TARGETS=$(shell bzr ls -k file app/templates)
13 SPRITE_SOURCE_FILES=$(shell bzr ls -R -k file app/assets/images) 14 SPRITE_SOURCE_FILES=$(shell bzr ls -R -k file app/assets/images)
14 SPRITE_GENERATED_FILES=app/assets/sprite/sprite.css app/assets/sprite/sprite.png 15 SPRITE_GENERATED_FILES=app/assets/sprite/sprite.css app/assets/sprite/sprite.png
15 DATE=$(shell date -u) 16 DATE=$(shell date -u)
16 APPCACHE=app/assets/manifest.appcache 17 APPCACHE=app/assets/manifest.appcache
17 18
18 all: install 19 all: install
19 20
20 app/templates.js: $(TEMPLATE_TARGETS) bin/generateTemplates 21 app/templates.js: $(TEMPLATE_TARGETS) bin/generateTemplates
21 @./bin/generateTemplates 22 @./bin/generateTemplates
22 23
23 yuidoc: install $(FILES) 24 yuidoc/index.html: node_modules/yuidocjs $(JSFILES)
24 @node_modules/.bin/yuidoc -o yuidoc -x assets app 25 @node_modules/.bin/yuidoc -o yuidoc -x assets app
25 26
27 yuidoc: yuidoc/index.html
28
26 $(SPRITE_GENERATED_FILES): node_modules/grunt node_modules/node-spritesheet $(SP RITE_SOURCE_FILES) 29 $(SPRITE_GENERATED_FILES): node_modules/grunt node_modules/node-spritesheet $(SP RITE_SOURCE_FILES)
27 @node_modules/grunt/bin/grunt spritegen 30 @node_modules/grunt/bin/grunt spritegen
28 » mv bin/sprite app/assets/sprite/ 31 » @mv bin/sprite app/assets/sprite/
29 32
30 $(NODE_TARGETS): package.json 33 $(NODE_TARGETS): package.json
31 @npm install 34 @npm install
32 @#link depends 35 @#link depends
33 @ln -sf `pwd`/node_modules/yui ./app/assets/javascripts/ 36 @ln -sf `pwd`/node_modules/yui ./app/assets/javascripts/
34 @ln -sf `pwd`/node_modules/d3/d3.v2* ./app/assets/javascripts/ 37 @ln -sf `pwd`/node_modules/d3/d3.v2* ./app/assets/javascripts/
35 38
36 install: appcache $(NODE_TARGETS) app/templates.js yuidoc spritegen 39 install: appcache $(NODE_TARGETS) app/templates.js yuidoc spritegen
37 40
38 gjslint: virtualenv/bin/gjslint 41 gjslint: virtualenv/bin/gjslint
39 @virtualenv/bin/gjslint --strict --nojsdoc --jslint_error=all \ 42 @virtualenv/bin/gjslint --strict --nojsdoc --jslint_error=all \
40 --custom_jsdoc_tags module,main,class,method,event,property,attribut e,submodule,namespace,extends,config,constructor,static,final,readOnly,writeOnce ,optional,required,param,return,for,type,private,protected,requires,default,uses ,example,chainable,deprecated,since,async,beta,bubbles,extension,extensionfor,ex tension_for \ 43 --custom_jsdoc_tags module,main,class,method,event,property,attribut e,submodule,namespace,extends,config,constructor,static,final,readOnly,writeOnce ,optional,required,param,return,for,type,private,protected,requires,default,uses ,example,chainable,deprecated,since,async,beta,bubbles,extension,extensionfor,ex tension_for \
41 » $(FILES) 44 » $(JSFILES)
42 45
43 jshint: node_modules/jshint 46 jshint: node_modules/jshint
44 » @node_modules/jshint/bin/hint $(FILES) 47 » @node_modules/jshint/bin/hint $(JSFILES)
45 48
46 yuidoc-lint: $(FILES) 49 yuidoc-lint: $(JSFILES)
47 @bin/lint-yuidoc 50 @bin/lint-yuidoc
48 51
49 lint: gjslint jshint yuidoc-lint 52 lint: gjslint jshint yuidoc-lint
50 53
51 virtualenv/bin/gjslint virtualenv/bin/fixjsstyle: 54 virtualenv/bin/gjslint virtualenv/bin/fixjsstyle:
52 @virtualenv virtualenv 55 @virtualenv virtualenv
53 @virtualenv/bin/easy_install archives/closure_linter-latest.tar.gz 56 @virtualenv/bin/easy_install archives/closure_linter-latest.tar.gz
54 57
55 beautify: virtualenv/bin/fixjsstyle 58 beautify: virtualenv/bin/fixjsstyle
56 » @virtualenv/bin/fixjsstyle --strict --nojsdoc --jslint_error=all $(FILES ) 59 » @virtualenv/bin/fixjsstyle --strict --nojsdoc --jslint_error=all $(JSFIL ES)
57 60
58 spritegen: $(SPRITE_GENERATED_FILES) 61 spritegen: $(SPRITE_GENERATED_FILES)
59 62
60 prep: beautify lint 63 prep: beautify lint
61 64
62 test: install 65 test: install
63 @./test-server.sh 66 @./test-server.sh
64 67
65 server: install 68 server: install
66 @echo "Customize config.js to modify server settings" 69 @echo "Customize config.js to modify server settings"
(...skipping 13 matching lines...) Expand all
80 83
81 # A target used only for forcibly updating the appcache. 84 # A target used only for forcibly updating the appcache.
82 appcache-touch: 85 appcache-touch:
83 @touch manifest.appcache.in 86 @touch manifest.appcache.in
84 87
85 # This is the real target. appcache-touch needs to be executed before 88 # This is the real target. appcache-touch needs to be executed before
86 # appcache, and this provides the correct order. 89 # appcache, and this provides the correct order.
87 appcache-force: appcache-touch appcache 90 appcache-force: appcache-touch appcache
88 91
89 .PHONY: test lint beautify server install clean prep jshint gjslint \ 92 .PHONY: test lint beautify server install clean prep jshint gjslint \
90 » appcache appcache-touch appcache-force spritegen yuidoc-lint 93 » appcache appcache-touch appcache-force yuidoc spritegen yuidoc-lint
OLDNEW
« no previous file with comments | « no previous file | README » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b