-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (27 loc) · 993 Bytes
/
Makefile
File metadata and controls
39 lines (27 loc) · 993 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
NODE_MODULES ?= node_modules
VERSION:=$(shell git describe --abbrev=0 --always --match v*)
mkfile_path:=$(abspath $(lastword $(MAKEFILE_LIST)))
current_dir:=$(notdir $(patsubst %/,%,$(dir $(mkfile_path))))
WEBEXT := $(NODE_MODULES)/.bin/web-ext
help:
@echo "targets:"
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) \
| sed -n 's/^\(.*\): \(.*\)##\(.*\)/ \1|\3/p' \
| column -t -s '|'
build: ## build project
npm run build:firefox
package: build ## package for upload
npm run package:all
package-chrome: ## package for Chrome upload
npm run package:chrome
package-firefox: ## package for Firefox upload
npm run package:firefox
package-edge: ## package for Edge upload
npm run package:edge
test: ## web extension tests
npm run webext-test
serve: ## launch test browser
npm run extension
serve-chromium: ## launch test browser (Chromium)
npm run extension:chromium
.PHONY: help build package package-chrome package-firefox package-edge test serve serve-chromium