blob: fd880c4c302f65fef87ca799f2325cdafdc64420 (
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
33
34
|
QUILT_IN := add applied delete diff files import new next patches \
pop previous push refresh remove series setup top unapplied
SCRIPTS_IN := apatch rpatch patchfns spec2series patchfns
# scripts/parse-patch is perl based
TO_PARSE= $(foreach f,$(QUILT_IN),../quilt/$(f).in) \
$(foreach f,$(SCRIPTS_IN),../scripts/$(f).in) \
../bin/quilt.in
all: fr.mo
%.mo : %.po
msgfmt --statistics -o $@ $<
%.po : quilt.pot
msgmerge -o $@ $@ $^
quilt.pot: $(TO_PARSE)
rm -f quilt.pot; touch quilt.pot
for file in $(TO_PARSE) ; do \
bash --dump-po-strings $$file \
|msguniq\
|msgcat --force-po -F - quilt.pot -o quilt.pot; \
done
clean:
rm -f *.mo *~
install: all
install -d $(BUILD_ROOT)/usr/share/locale/fr/LC_MESSAGES
install -m644 fr.mo $(BUILD_ROOT)/usr/share/locale/fr/LC_MESSAGES/quilt.mo
.PHONY: install clean all
|