1 include $(top_srcdir
)/po
/Makevars
26 POTFILE
=po
/$(DOMAIN
).pot
28 TRANSLATABLE_FILES
= $(DIST_SOURCES
) $(all_q_sources
)
31 --copyright-holder
="$(COPYRIGHT_HOLDER)" \
32 --package-name
=$(PACKAGE
) \
33 --package-version
=$(VERSION
) \
34 --msgid-bugs-address
=$(MSGID_BUGS_ADDRESS
) \
36 --add-comments
='TRANSLATORS:'
38 $(POTFILE
): $(TRANSLATABLE_FILES
) $(UI_FILES
) src
/ui
/gui
/gen-dot-desktop.sh
40 $(AM_V_GEN
)$(XGETTEXT
) --directory
=$(top_srcdir
) $(XGETTEXT_OPTIONS
) $(TRANSLATABLE_FILES
) --language
=C
--keyword
=_
--keyword
=N_
-o
$@
,tmp
41 $(AM_V_at
)$(XGETTEXT
) --directory
=$(top_srcdir
) $(XGETTEXT_OPTIONS
) -j
$(UI_FILES
) --language
=glade
-o
$@
,tmp
42 $(AM_V_at
)$(XGETTEXT
) --directory
=$(top_srcdir
) $(XGETTEXT_OPTIONS
) -j src
/ui
/gui
/gen-dot-desktop.sh
--language
=shell --keyword
=TRANSLATE
-o
$@
,tmp
43 $(AM_V_at
)$(SED
) -e
'/^"POT-Creation-Date: .*/d' $@
,tmp
> $@
45 $(POFILES
): $(POTFILE
)
46 $(AM_V_GEN
)$(MSGMERGE
) --quiet
$(top_srcdir
)/$@
$?
-o
$@
,tmp
47 $(AM_V_at
)if
test -e
$(top_srcdir
)/$@
,aux
; then \
49 msgcat
--use-first
$(top_srcdir
)/$@
,aux
$@
,tmp
-o
$@
,tmp
; \
51 $(AM_V_at
)$(SED
) -e
'/^"POT-Creation-Date: /d' $@
,tmp
> $@
55 @
$(MKDIR_P
) `dirname $@`
56 $(AM_V_GEN
)$(MSGFMT
) $< -o
$@
59 GMOFILES
= $(POFILES
:.po
=.gmo
)
61 ALL_LOCAL
+= $(GMOFILES
)
63 install-data-hook
: $(GMOFILES
)
64 for f in
$(GMOFILES
); do \
65 lang
=`echo $$f | $(SED) -e 's%po/\(.*\)\.gmo%\1%' ` ; \
66 $(MKDIR_P
) $(DESTDIR
)$(prefix)/share
/locale
/$$lang/LC_MESSAGES
; \
67 $(INSTALL_DATA
) $$f $(DESTDIR
)$(prefix)/share
/locale
/$$lang/LC_MESSAGES
/$(DOMAIN
).mo
; \
71 for f in
$(GMOFILES
); do \
72 lang
=`echo $$f | $(SED) -e 's%po/\(.*\)\.gmo%\1%' ` ; \
73 rm -f
$(DESTDIR
)$(prefix)/share
/locale
/$$lang/LC_MESSAGES
/$(DOMAIN
).mo
; \
83 CLEANFILES
+= $(GMOFILES
) $(POTFILE
)
85 # Clean $(POFILES) from build directory but not if that's the same as
86 # the source directory.
88 @if
test "$(srcdir)" != .
; then \
89 echo
rm -f
$(POFILES
); \
92 CLEAN_LOCAL
+= po_CLEAN