blob: 0811e7fa42fa5b6e6d9fb0189285747c4c03aa1c [file] [log] [blame]
Primiano Tucci39e6b052018-04-10 08:26:07 +01001# Copyright (C) 2018 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
Primiano Tuccid4a944e2018-10-26 17:16:42 +010015test: static
Primiano Tucci39e6b052018-04-10 08:26:07 +010016 dev_appserver.py .
17
Primiano Tuccid4a944e2018-10-26 17:16:42 +010018static: node_modules/.stamp
Primiano Tuccif7747592018-10-26 17:44:38 +010019 rm -rf static
20 mkdir -p static
Primiano Tuccid4a944e2018-10-26 17:16:42 +010021 cp node_modules/docsify/lib/docsify.min.js static/
22 cp node_modules/docsify-themeable/dist/js/docsify-themeable.min.js static/
23 cp node_modules/docsify-themeable/dist/css/theme-simple.css static/
24 cp node_modules/docsify-copy-code/dist/docsify-copy-code.min.js static/
25 cp node_modules/prismjs/components/prism-bash.min.js static/
Lalit Maganti39013ae2019-05-31 16:09:38 +010026 cp node_modules/prismjs/components/prism-protobuf.min.js static/
27 cp node_modules/prismjs/components/prism-sql.min.js static/
Primiano Tuccid4a944e2018-10-26 17:16:42 +010028
29deploy: static
30 gcloud app deploy app.yaml --project perfetto-site
31
32node_modules/.stamp: package.json
33 npm install --quiet
34 touch "$@"
35
36.PHONY: deploy test static