File: nls-rules.mk

package info (click to toggle)
hylafax 3:6.0.6-8.1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 9,508 kB
  • sloc: sh: 15,371; ansic: 13,242; makefile: 1,545; cpp: 781; awk: 529
file content (23 lines) | stat: -rw-r--r-- 948 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Common rules for Native Language Support (NLS)
# #
# # If some subdirectory of the source tree wants to provide NLS, it
# # needs to define the following make variable assignments:
# #
# # SOURCES               -- list of source files that contain message strings
# # GETTEXT_TRIGGERS      -- (optional) list of functions that contain
# #                          translatable strings
# #
# # That's all.  This will allow a "message.po" to be build there, and
# # the infrastructue in po/Makefile will use this to update everything

nls-SHOUT:
	@echo "NLS Settings:"
	@echo "PO: '${PO_FILES}'"
	@echo "MO: '${MO_FILES}'"
	@echo "FILES: ${SOURCES}"

OLDmessages.po: ${SOURCES}
	${XGETTEXT} -D ${DEPTH}/${SUBDIR} -D ${SRCDIR} -n ${addprefix -k, _ N_ ${GETTEXT_TRIGGERS}} ${SOURCES}

messages.po: ${SOURCES}
	${XGETTEXT} -D ${DEPTH} -D ${DEPTH}/${TOPSRCDIR} -n ${addprefix -k, _ N_ P_:1,2 ${GETTEXT_TRIGGERS}} ${patsubst %, ${SUBDIR}/%, ${SOURCES}}