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-4.11.0.min.css: 40 curl -Sso $@ https://unpkg.com/xterm@4.11.0/css/xterm.css 41 echo "4cee0ccb82803888905fefc8641f0613c0a9081b $@" | ${SHASUM} -c || rm $@ 42 43static/third_party/xterm-4.11.0.min.js: 44 curl -Sso $@ https://unpkg.com/xterm@4.11.0/lib/xterm.js 45 echo "470644a5cd3e2a443a422c6ecddc85b37a85f329 $@" | ${SHASUM} -c || rm $@ 46 47static/third_party/xterm-0.8.0-addon-search.min.js: 48 curl -Sso $@ https://unpkg.com/xterm-addon-search@0.8.0/lib/xterm-addon-search.js 49 echo "1eae1371cc07677c38f9d01eae4d6a3b996388f8 $@" | ${SHASUM} -c || rm $@ 50 51static/third_party/xterm-0.5.0-addon-fit.min.js: 52 curl -Sso $@ https://unpkg.com/xterm-addon-fit@0.5.0/lib/xterm-addon-fit.js 53 echo "4c8942910554242336443126e349ac1e3897a64e $@" | ${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/mithril-1.1.6.min.js static/third_party/xterm-4.11.0.min.css static/third_party/xterm-4.11.0.min.js static/third_party/xterm-0.8.0-addon-search.min.js static/third_party/xterm-0.5.0-addon-fit.min.js 60 61.PHONY: test deploy static_3p 62