Home | History | Annotate | Download | only in perfetto-site.appspot.com
      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 
     15 test: static
     16 	dev_appserver.py .
     17 
     18 static: node_modules/.stamp
     19 	rm -rf static
     20 	mkdir -p static
     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/
     26 
     27 deploy: static
     28 	gcloud app deploy app.yaml --project perfetto-site
     29 
     30 node_modules/.stamp: package.json
     31 	npm install --quiet
     32 	touch "$@"
     33 
     34 .PHONY: deploy test static
     35