-
Notifications
You must be signed in to change notification settings - Fork 41
/
Makefile
29 lines (22 loc) · 852 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
WEB-EXT=../node_modules/.bin/web-ext
mk_sources: clean
@mkdir -p build
@cp -R src/* build/
@cp LICENSE build/
@echo "sources ready"
lint: mk_sources
$(WEB-EXT) lint --source-dir=build
build: mk_sources
$(WEB-EXT) build --source-dir=build --artifacts-dir=dist --overwrite-dest
clean:
@rm -rf build/
@echo "clean done"
get_missing_DE_translations:
@diff src/_locales/de/messages.json src/_locales/en/messages.json | grep ": {"; [ $$? -eq 1 ]
get_missing_FR_translations:
@diff src/_locales/fr/messages.json src/_locales/en/messages.json | grep ": {"; [ $$? -eq 1 ]
get_missing_from_new_language:
mkdir -p src/_locales/$(LOCALE)
@touch src/_locales/$(LOCALE)/messages.json
@echo "\"src/_locales/$(LOCALE)/messages.json\" is created!"
@diff src/_locales/$(LOCALE)/messages.json src/_locales/en/messages.json | grep ": {"; [ $$? -eq 1 ]