Debian Codegraph @

locale/Makefile.in

raw
1 @SET_MAKE@
2
3 top_builddir=@top_builddir@
4 top_srcdir=@top_srcdir@
5 srcdir=@srcdir@
6
7
8 LS=/bin/ls
9 VPATH=@srcdir@
10
11 include $(top_builddir)/Make.rules
12
13 [email protected]
14 COPYRIGHT_HOLDER=The ProFTPD Project
15 PACKAGE=proftpd
16
17 # This file is generated using:
18 #
19 # `find .. -name "*.[ch]" -print | grep -v tests\/ | egrep "contrib|include|modules|src" | sort > files.txt'
20 #
21 # and is then checked into git.
22 FILES=files.txt
23
24 LANGS=bg_BG en_US es_ES fr_FR it_IT ja_JP ko_KR pl_PL ru_RU zh_CN zh_TW $(EXTRA_LANGS)
25
26 # gettext utilities. Note that this assumes gettext is installed and
27 # available on the system.
28 MSGCMP=msgcmp
29 MSGFMT=msgfmt
30 MSGINIT=msginit
31 XGETTEXT=xgettext
32
33 .SUFFIXES: .h
34
35 .PHONY: ""
36
37 all:
38 @echo "Running make from top level directory."
39 cd .. && $(MAKE) all
40
41 Makefile: Makefile.in ../config.status
42 cd ../ && ./config.status
43
44 $(PACKAGE).pot: .PHONY
45 $(RM) $(PACKAGE).pot
46 $(XGETTEXT) -L C --keyword=_ --flag=_:1:pass-c-format --keyword=N_ --flag=N_:1:pass-c-format --no-wrap --package-name=$(PACKAGE) --copyright-holder="$(COPYRIGHT_HOLDER)" --msgid-bugs-address="$(CONTACT_ADDRESS)" --sort-by-file -f $(FILES) -o $(PACKAGE).pot
47
48 locale: $(LANGS)
49
50 install: $(LANGS)
51 for lang in $(LANGS); do \
52 if [ -f $(top_builddir)/locale/$$lang.mo ]; then \
53 if [ ! -d $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES ]; then \
54 mkdir -p $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES; \
55 chown $(INSTALL_USER):$(INSTALL_GROUP) $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES; \
56 chmod 0755 $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES; \
57 fi; \
58 $(INSTALL_MAN) $$lang.mo $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(PACKAGE).mo; \
59 fi; \
60 done
61
62 check:
63 -for lang in $(LANGS); do \
64 if [ -f $(srcdir)/$$lang.po ]; then \
65 echo "Checking $$lang.po format..."; \
66 $(MSGFMT) --check-format $(srcdir)/$$lang.po > /dev/null && echo "$$lang.mo OK"; \
67 echo "Checking $$lang.po against template...."; \
68 $(MSGCMP) $(srcdir)/$$lang.po $(srcdir)/$(PACKAGE).pot; \
69 echo "----------------------"; \
70 fi; \
71 done
72
73 clean:
74 $(RM) *.gmo *.mo
75
76 $(LANGS):
77 -if [ ! -f "$(srcdir)/[email protected]" ]; then \
78 $(MSGINIT) --no-translator -i $(srcdir)/$(PACKAGE).pot -o "$(srcdir)/[email protected]" -l $@; \
79 fi
80 -if [ -f "$(srcdir)/[email protected]" -a ! -f [email protected] ]; then \
81 $(MSGFMT) -o [email protected] "$(srcdir)/[email protected]"; \
82 fi