1 include $(top_srcdir
)/po
/Makevars
21 POTFILE
=po
/$(DOMAIN
).pot
23 TRANSLATABLE_FILES
= $(DIST_SOURCES
) $(all_q_sources
)
26 --copyright-holder
="$(COPYRIGHT_HOLDER)" \
27 --package-name
=$(PACKAGE
) \
28 --package-version
=$(VERSION
) \
29 --msgid-bugs-address
=$(MSGID_BUGS_ADDRESS
) \
31 --add-comments
='TRANSLATORS:'
33 $(POTFILE
): $(TRANSLATABLE_FILES
) $(UI_FILES
) src
/ui
/gui
/gen-dot-desktop.sh
35 $(XGETTEXT
) --directory
=$(top_srcdir
) $(XGETTEXT_OPTIONS
) $(TRANSLATABLE_FILES
) --language
=C
--keyword
=_
--keyword
=N_
-o
$@
36 $(XGETTEXT
) --directory
=$(top_srcdir
) $(XGETTEXT_OPTIONS
) -j
$(UI_FILES
) --language
=glade
-o
$@
37 $(XGETTEXT
) --directory
=$(top_srcdir
) $(XGETTEXT_OPTIONS
) -j src
/ui
/gui
/gen-dot-desktop.sh
--language
=shell --keyword
=TRANSLATE
-o
$@
40 $(POFILES
): $(POTFILE
)
41 $(MSGMERGE
) $(top_srcdir
)/$@
$?
-o
$@
42 if
test -e
$(top_srcdir
)/$@
,aux
; then \
44 msgcat
--use-first
$(top_srcdir
)/$@
,aux
$@
-o
$@
; \
51 @
$(MKDIR_P
) `dirname $@`
55 GMOFILES
= $(POFILES
:.po
=.gmo
)
57 ALL_LOCAL
+= $(GMOFILES
)
59 install-data-hook
: $(GMOFILES
)
60 for f in
$(GMOFILES
); do \
61 lang
=`echo $$f | sed -e 's%po/\(.*\)\.gmo%\1%' ` ; \
62 $(MKDIR_P
) $(DESTDIR
)$(prefix)/share
/locale
/$$lang/LC_MESSAGES
; \
63 $(INSTALL_DATA
) $$f $(DESTDIR
)$(prefix)/share
/locale
/$$lang/LC_MESSAGES
/$(DOMAIN
).mo
; \
67 for f in
$(GMOFILES
); do \
68 lang
=`echo $$f | sed -e 's%po/\(.*\)\.gmo%\1%' ` ; \
69 rm -f
$(DESTDIR
)$(prefix)/share
/locale
/$$lang/LC_MESSAGES
/$(DOMAIN
).mo
; \
80 CLEANFILES
+= $(GMOFILES
) $(POTFILE
)
82 # Clean $(POFILES) from build directory but not if that's the same as
83 # the source directory.
85 @if
test "$(srcdir)" != .
; then \
86 echo
rm -f
$(POFILES
); \
89 CLEAN_LOCAL
+= po_CLEAN