aboutsummaryrefslogtreecommitdiff
path: root/etpo/Makefile.am
blob: 2a92ecd3ebdf35fcffdd6636d5d0fac1adad8dad (plain)
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
noinst_PROGRAMS = etpo
etpo_SOURCES = lexer.l grammar.y
lexer.c: grammar.h
AM_YFLAGS=-d
AM_CFLAGS=\
	@GTK_CFLAGS@ 		 \
	@DBUS_CFLAGS@		 \
	@GCONF_CFLAGS@		 \
	@KRB5_CFLAGS@		 \
	@NETWORK_MANAGER_CFLAGS@ \
	@LIBNOTIFY_CFLAGS@	 \
	@CFLAGS@
AM_LDFLAGS=\
	@NETWORK_MANAGER_LIBS@ \
	@KRB5_LIBS@ \
	@LIBNOTIFY_LIBS@ \
	@DBUS_LIBS@ \
	@GCONF_LIBS@ \
	@GTK_LIBS@

DISTCLEANFILES=lexer.c

# rebuild dummy strings for translation from Kerberos sources
ET_SUBDIR="src/lib/krb5/"
# ignore these to reduce translatable strings
ET_IGNORE="(kdb5_err|krb524|KRB5PLACEHOLD)"

update-etpo: ${top_srcdir}/src/dummy-strings.c

${top_srcdir}/src/dummy-strings.c: etpo
	@if [ -z "${ET_DIR}" ]; then \
	    echo "Need to set ET_DIR to Kerberos sources"; \
	    exit 1; \
	fi
	echo '/* Generated by hand via "cd etpo; make update-etpo" from ${ET_DIR} */' > $@.tmp
	./$< ${ET_DIR}${ET_SUBDIR} | egrep -v ${ET_IGNORE} >> $@.tmp
	mv -f $@.tmp $@
bgstack15