mirror of
https://github.com/huhu/rust-search-extension
synced 2024-11-14 15:47:12 +00:00
19 lines
638 B
Makefile
19 lines
638 B
Makefile
include core/extension.mk
|
|
include build.mk
|
|
|
|
.PHONY: chrome manage bundle
|
|
|
|
# Override the included `assert` target.
|
|
assert:
|
|
@test -d extension/manage && echo "Assert extension/manage success!\n" || (echo "No extension/manage found!\n Running `make manage`"; make manage)
|
|
|
|
# Build manage css and html
|
|
manage:
|
|
@cd manage && cargo run
|
|
|
|
bundle:
|
|
@echo "Building extension/content_script_bundle.js..."
|
|
@esbuild content-script-bundle.js --bundle --minify --global-name=rse --target=es2015 --outdir=extension
|
|
|
|
# Build macro-railroad wasm module and js
|
|
macro-railroad: extension/wasm/macro-railroad.wasm extension/script/macro-railroad-wasm.js
|