blob: a3f244e5e1a120d6385d1d7aace84343e9b1ce3c [file] [log] [blame]
#Use Vulcanize 1.0
VULCANIZE1=true
# The list of files we want to go into core.js, which is concat'd and
# minified. These files should be either present in the project, brought
# into third_party/bower_compoents via bower, or in node_modules.
CORE_SOURCE_FILES = third_party/bower_components/webcomponentsjs/webcomponents.min.js \
../res/js/common.js \
res/js/status_utils.js
BOWER_DIR=third_party/bower_components
all: clean_webtools status
include ../go/skiaversion/skiaversion.mk
status: web skiaversion
go install -v ./go/status
# Build the web assets in production mode.
.PHONY: web
web: webpack touch_elements core_js elements_html
ln -sf ../../res res/imp/res
.PHONY: touch_elements
touch_elements:
rm -f res/js/core.js
touch elements.html
testgo: skiaversion
go test ./go/... -v
release: all
./build_release "$(MESSAGE)"
push: all
./build_release "`git log -n1 --format=%s`"
pushcli statusd skia-status
push_internal: all
./build_internal_release "`git log -n1 --format=%s`"
pushcli status-internal skia-status-internal
push_staging: all
./build_staging_release "`git log -n1 --format=%s`"
pushcli status-staging skia-status-staging
statusk: web skiaversion
CGO_ENABLED=0 GOOS=linux go install -a ./go/statusk
release_kube: statusk
./build_docker_release
run_kube: release
docker run status
push_kube: release_kube skia-public
pushk --message="$(MESSAGE)" statusk
# Build debug versions of core.js and elements.html.
.PHONY: debug
debug: clean_webtools debug_core_js debug_elements_html
include ../webtools/webtools.mk
include ../make/clusters.mk
include webpack/webpack.mk