summaryrefslogtreecommitdiffstats
path: root/po/Makefile
blob: 3e10c82778000bbc7cfb108019a1189fc3345258 (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
35
QUILT_IN :=   add applied delete diff files import new next patches \
              pop previous push refresh remove series setup top unapplied \
	      guidiff
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