-
Notifications
You must be signed in to change notification settings - Fork 26
/
Makefile
38 lines (31 loc) · 784 Bytes
/
Makefile
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
export BUILD_VERSION ?= 2.2.1
export BUILD_DIR ?= $(shell realpath ./build)
export BUILD_SRC ?= $(shell realpath ./src)
cli = node ./scripts/cli.mjs
.PHONY: build
build: TARGET ?= firefox
build:
$(cli) build --target $(TARGET)
.PHONY: build-watch
build-watch: TARGET ?= firefox
build-watch:
$(cli) build --target $(TARGET) --watch
.PHONY: ext-firefox
ext-firefox: BUILD_PROFILE ?= debug
ext-firefox:
$(cli) build --target firefox --lint --profile $(BUILD_PROFILE)
.PHONY: ext-chromium
ext-chromium: BUILD_PROFILE ?= debug
ext-chromium:
$(cli) build --target chromium --profile $(BUILD_PROFILE)
.PHONY: test
test: TARGET ?= firefox-test
test:
$(cli) test --target $(TARGET)
.PHONY: watch
watch: TARGET ?= firefox
watch:
$(cli) watch
.PHONY: clean
clean:
$(cli) clean