OLD | NEW |
---|---|
1 # The list of files we want to go into core.js, which is concat'd and | 1 # The list of files we want to go into core.js, which is concat'd and |
2 # minified. These files should be either present in the project, brought | 2 # minified. These files should be either present in the project, brought |
3 # into third_party/bower_compoents via bower, or in node_modules. | 3 # into third_party/bower_compoents via bower, or in node_modules. |
4 CORE_SOURCE_FILES = third_party/bower_components/webcomponentsjs/webcomponents.m in.js \ | 4 CORE_SOURCE_FILES = third_party/bower_components/webcomponentsjs/webcomponents.m in.js \ |
5 ../res/js/common.js \ | 5 ../res/js/common.js |
6 third_party/bower_components/jquery/dist/jquery.min.js \ | |
7 third_party/bower_components/bootstrap/dist/js/bootstrap.min.js \ | |
8 third_party/bower_components/codemirror/lib/codemirror.js \ | |
9 third_party/bower_components/codemirror/mode/clike/clike.js | |
10 | 6 |
11 BOWER_DIR=third_party/bower_components | 7 BOWER_DIR=third_party/bower_components |
12 | 8 |
13 .PHONY: build | 9 .PHONY: build |
14 build: res/css/webtry.css core_js elements_html | 10 build: res/css/fuzzer.css core_js elements_html |
15 » ./build | 11 » go install -v ./go/fuzzer |
16 | 12 |
17 .PHONY: ver | 13 .PHONY: ver |
18 ver: H=$(shell echo `git log -n 1 --format=format:%H`) | 14 ver: H=$(shell echo `git log -n 1 --format=format:%H`) |
19 ver: | 15 ver: |
20 S=$(shell echo $H | cut -c1-5); \ | 16 S=$(shell echo $H | cut -c1-5); \ |
21 sed --in-place "s/\(<span id=\"version\">\)\(.*\)\(<\/span>\)/\1<a href= \"https:\/\/skia.googlesource.com\/buildbot\/+\/$H\" target=\"_blank\">Ver:$$S<\ /a>\3/" templates/titlebar.html | 17 sed --in-place "s/\(<span id=\"version\">\)\(.*\)\(<\/span>\)/\1<a href= \"https:\/\/skia.googlesource.com\/buildbot\/+\/$H\" target=\"_blank\">Ver:$$S<\ /a>\3/" templates/titlebar.html |
22 git update-index --assume-unchanged templates/titlebar.html | 18 git update-index --assume-unchanged templates/titlebar.html |
23 | 19 |
24 .PHONY: release | 20 .PHONY: release |
25 release: ver build | 21 release: ver build |
26 echo | 22 echo |
27 | 23 |
24 .PHONY: test | |
25 test: testgo testjs | |
26 echo | |
27 | |
28 .PHONY: testgo | |
29 testgo: | |
30 go test ./go/... | |
31 | |
28 .PHONY: testjs | 32 .PHONY: testjs |
29 testjs: | 33 testjs: |
30 ./node_modules/karma/bin/karma start karma.conf.js | 34 ./node_modules/karma/bin/karma start karma.conf.js |
31 | 35 |
36 .PHONY: randomizer | |
37 randomizer: | |
38 go install -v ./go/randomizer | |
39 | |
40 .PHONY: aggregator | |
41 aggregator: | |
42 go install -v ./go/aggregator | |
43 | |
44 .PHONY: sanitizer | |
45 sanitizer: | |
46 go install -v ./go/sanitizer | |
47 | |
32 # Build serving CSS from input CSS. | 48 # Build serving CSS from input CSS. |
33 res/css/webtry.css: node_modules/lastupdate res/webtry/css/webtry.css | 49 res/css/fuzzer.css: node_modules/lastupdate res/css/main.css |
jcgregorio
2015/02/11 13:32:23
You should also have an entry in .gitignore for re
| |
34 » ./node_modules/.bin/autoprefixer res/webtry/css/webtry.css -o res/css/we btry.css | 50 » ./node_modules/.bin/autoprefixer res/css/main.css -o res/css/fuzzer.css |
35 | 51 |
36 # Build debug versions of core.js and elements.html. | 52 # Build debug versions of core.js and elements.html. |
37 .PHONY: debug | 53 .PHONY: debug |
38 debug: clean_webtools debug_core_js debug_elements_html | 54 debug: clean_webtools debug_core_js debug_elements_html |
39 | 55 |
40 .PHONY: all | 56 .PHONY: all |
41 all: build tool logs | 57 all: build randomizer aggregator sanitizer |
42 | 58 |
43 .PHONY: tags | 59 .PHONY: tags |
44 tags: | 60 tags: |
45 -rm tags | 61 -rm tags |
46 find . -name "*.go" -print -or -name "*.js" -or -name "*.html" | xargs c tags --append | 62 find . -name "*.go" -print -or -name "*.js" -or -name "*.html" | xargs c tags --append |
47 | 63 |
48 include ../webtools/webtools.mk | 64 include ../webtools/webtools.mk |
OLD | NEW |