summaryrefslogtreecommitdiffstats
path: root/extensions/46/middleclickclose/Makefile
blob: 8960c9542df049468a248c6d37bcc05bb36a3674 (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
.PHONY: clean all install po pot pack

POT_SOURCE_FILES = $(wildcard src/schemas/*.gschema.xml src/*.js)
EXTRA_SOURCE_FILES = settingsWatch.js

all: pack

pack:
	gnome-extensions pack --force src/ $(addprefix --extra-source=, $(EXTRA_SOURCE_FILES))

install: pack
	gnome-extensions install --force middleclickclose@paolo.tranquilli.gmail.com.shell-extension.zip

po: $(wildcard src/po/*.po)
pot: src/po/template.pot

clean:
	rm -f middleclickclose@paolo.tranquilli.gmail.com.shell-extension.zip
	rm -f src/po/template.pot

# ---

src/po/template.pot: $(POT_SOURCE_FILES)
	xgettext -F --from-code=UTF-8 --output=src/po/template.pot $(POT_SOURCE_FILES)

src/po/%.po: pot
	msgmerge --quiet --backup off --update $@ src/po/template.pot