aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 357a90371d54cec4f0a86041c2f1401e052474b6 (plain) (blame)
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
all: build pack

# Make alias to simplify building for Mozilla staff when reviewing extensions
mozaddons:
	$(MAKE) deepclean
	$(MAKE) bootstrap
	pnpm i
	$(MAKE) build-reproducible
	$(MAKE) pack

clean:
	rm -rf build static/generated .svelte-kit artifacts
deepclean: clean
	rm -rf node_modules
	rm static/manifest.json || true
	ln -s ../manifest.json static/manifest.json

bootstrap:
	./bootstrap

build-release-addon:
	contrib/ensure-reproducible-builds.sh
	$(MAKE) mozaddons

build:
	pnpm build

build-reproducible:
	pnpm build-reproducible

pack:
	contrib/pack