blob: 9699c4738e00c58a9f11c5cfc23f1b55a81e67e2 (
plain)
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
|
.PHONY: all build icon locales generate_locales clean
all: icon locales build
build: icon catalog.go
go build
clean:
make -C icon clean
rm bitmask-systray
icon:
make -C icon
LANGS ?= $(foreach path,$(wildcard locales/*/messages.gotext.json),$(patsubst locales/%/messages.gotext.json,%,$(path)))
empty :=
space := $(empty) $(empty)
lang_list := $(subst $(space),,$(foreach lang,$(LANGS),$(lang),))
locales: catalog.go
generate_locales: $(foreach lang,$(LANGS),locales/$(lang)/out.gotext.json)
locales/%/out.gotext.json: systray.go notificator.go
gotext update -lang=$*
catalog.go: $(foreach lang,$(LANGS),locales/$(lang)/messages.gotext.json)
gotext update -lang=$(lang_list) -out catalog.go
|