Primiano Tucci | 39e6b05 | 2018-04-10 08:26:07 +0100 | [diff] [blame] | 1 | # 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 Tucci | d4a944e | 2018-10-26 17:16:42 +0100 | [diff] [blame] | 15 | test: static |
Primiano Tucci | 39e6b05 | 2018-04-10 08:26:07 +0100 | [diff] [blame] | 16 | dev_appserver.py . |
| 17 | |
Primiano Tucci | d4a944e | 2018-10-26 17:16:42 +0100 | [diff] [blame] | 18 | static: node_modules/.stamp |
Primiano Tucci | f774759 | 2018-10-26 17:44:38 +0100 | [diff] [blame] | 19 | rm -rf static |
| 20 | mkdir -p static |
Primiano Tucci | d4a944e | 2018-10-26 17:16:42 +0100 | [diff] [blame] | 21 | 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 Maganti | 39013ae | 2019-05-31 16:09:38 +0100 | [diff] [blame^] | 26 | cp node_modules/prismjs/components/prism-protobuf.min.js static/ |
| 27 | cp node_modules/prismjs/components/prism-sql.min.js static/ |
Primiano Tucci | d4a944e | 2018-10-26 17:16:42 +0100 | [diff] [blame] | 28 | |
| 29 | deploy: static |
| 30 | gcloud app deploy app.yaml --project perfetto-site |
| 31 | |
| 32 | node_modules/.stamp: package.json |
| 33 | npm install --quiet |
| 34 | touch "$@" |
| 35 | |
| 36 | .PHONY: deploy test static |