File: Makefile.in

package info (click to toggle)
krb5 1.15-1+deb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 54,220 kB
  • ctags: 32,381
  • sloc: ansic: 310,596; cpp: 16,220; exp: 13,350; python: 7,990; makefile: 7,223; sh: 6,185; perl: 3,518; asm: 1,460; yacc: 1,006; xml: 503; awk: 396; csh: 147; lisp: 104; sed: 43
file content (53 lines) | stat: -rw-r--r-- 1,504 bytes parent folder | download | duplicates (3)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
mydir=po
BUILDTOP=$(REL)..
VER=@PACKAGE_VERSION@

DOMAIN=mit-krb5
POTFILE=$(srcdir)/$(DOMAIN).pot
XGETTEXT=xgettext --foreign-user --package-name=mit-krb5 \
	--package-version=$(VER) --copyright-holder=MIT
ETSRCS=	$(BUILDTOP)/lib/gssapi/generic/gssapi_err_generic.c \
	$(BUILDTOP)/lib/gssapi/krb5/gssapi_err_krb5.c \
	$(BUILDTOP)/lib/kadm5/chpass_util_strings.c \
	$(BUILDTOP)/lib/kadm5/kadm_err.c \
	$(BUILDTOP)/lib/kdb/adb_err.c \
	$(BUILDTOP)/lib/krb5/error_tables/k5e1_err.c \
	$(BUILDTOP)/lib/krb5/error_tables/krb5_err.c \
	$(BUILDTOP)/lib/krb5/error_tables/kdb5_err.c \
	$(BUILDTOP)/lib/krb5/error_tables/asn1_err.c \
	$(BUILDTOP)/lib/krb5/error_tables/kv5m_err.c \
	$(BUILDTOP)/lib/krb5/error_tables/krb524_err.c
# This is a placeholder until we have an actual translation.
CATALOGS=en_US.mo de.mo

.SUFFIXES: .po .mo
.po.mo:
	msgfmt -o $@ $<

all: $(CATALOGS)

update-po: csrcs check_et_@COM_ERR_VERSION@
	$(XGETTEXT) -k_ -kN_ -o $(POTFILE) -f csrcs
	$(XGETTEXT) -kN_ -j -o $(POTFILE) $(ETSRCS)

csrcs: always
	find $(top_srcdir) -name "*.c" -print | LC_ALL=C sort > $@

check_et_k5 check_et_intlsys:
check_et_sys:
	@echo 1>&2 error: cannot update po file with this version of compile_et
	@exit 1

always:

install:
	for c in $(CATALOGS); do \
	  lang=`basename $$c .mo`; \
	  $(top_srcdir)/config/mkinstalldirs \
	    $(DESTDIR)$(KRB5_LOCALEDIR)/$$lang/LC_MESSAGES; \
	  $(INSTALL_DATA) $$c \
	    $(DESTDIR)$(KRB5_LOCALEDIR)/$$lang/LC_MESSAGES/$(DOMAIN).mo; \
	done

clean:
	$(RM) $(CATALOGS)