1# Copyright (C) 2019 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 16include $(shell python ../config.py makefile) 17 18SHASUM=shasum 19 20test: LOGLEVEL=info 21test: static_3p config.py common_utils.py static/config.js 22 dev_appserver.py app.yaml --dev_appserver_log_level ${LOGLEVEL} 23 24deploy: static_3p config.py common_utils.py static/config.js 25 gcloud app deploy -q app.yaml \ 26 --project ${PROJECT} \ 27 -v ${GAE_VERSION} \ 28 --stop-previous-version 29 30config.py: ../config.py 31 cp ../$@ $@ 32 33common_utils.py: ../common_utils.py 34 cp ../$@ $@ 35 36static/config.js: ../config.py 37 ../config.py js > $@ 38 39static/third_party/xterm-3.14.4.min.css: 40 curl -Sso $@ https://cdnjs.cloudflare.com/ajax/libs/xterm/3.14.4/xterm.min.css 41 echo "ad80f73df001c943cfcd98d706dba050704f715d $@" | ${SHASUM} -c || rm $@ 42 43static/third_party/xterm-3.14.4.min.js: 44 curl -Sso $@ https://cdnjs.cloudflare.com/ajax/libs/xterm/3.14.4/xterm.min.js 45 echo "9a92b3fbb118fd2a672f7eb4e69598384ca91756 $@" | ${SHASUM} -c || rm $@ 46 47static/third_party/xterm-3.14.4-addon-search.min.js: 48 curl -Sso $@ https://cdnjs.cloudflare.com/ajax/libs/xterm/3.14.4/addons/search/search.min.js 49 echo "73f55082d00c98b372cac1264ba9da70cdf603d0 $@" | ${SHASUM} -c || rm $@ 50 51static/third_party/xterm-3.14.4-addon-fit.min.js: 52 curl -Sso $@ https://cdnjs.cloudflare.com/ajax/libs/xterm/3.14.4/addons/fit/fit.min.js 53 echo "64835b1b71e8ca2d5bbb1a8e3c7f8a8f1edb2e5c $@" | ${SHASUM} -c || rm $@ 54 55static/third_party/mithril-1.1.6.min.js: 56 curl -Sso $@ https://cdnjs.cloudflare.com/ajax/libs/mithril/1.1.6/mithril.min.js 57 echo "a204c02ee15c347cf368c3481bdea967b443c8d0 $@" | ${SHASUM} -c || rm $@ 58 59static_3p: static/third_party/xterm-3.14.4.min.css static/third_party/xterm-3.14.4.min.js static/third_party/xterm-3.14.4-addon-search.min.js static/third_party/xterm-3.14.4-addon-fit.min.js static/third_party/mithril-1.1.6.min.js 60 61.PHONY: test deploy static_3p 62