1 ## Process this file with automake to produce Makefile.in
4 -DADMINDIR=\"$(admindir)\" \
5 -DLOCALEDIR=\"$(localedir)\" \
6 -DLOGDIR=\"$(logdir)\" \
7 -DSYSCONFDIR=\"$(sysconfdir)\" \
8 -DRUNSTATEDIR=\"$(runstatedir)\" \
9 -idirafter $(top_srcdir)/lib/compat \
16 dist_bashcompletions_DATA =
21 if BUILD_UPDATE_ALTERNATIVES
22 bin_PROGRAMS += update-alternatives
24 update_alternatives_CPPFLAGS = \
25 -DALT_TMP_EXT=\".dpkg-tmp\" \
26 -DADMINDIR_ENVVAR=\"DPKG_ADMINDIR\" \
27 -DINSTDIR_ENVVAR=\"DPKG_ROOT\" \
31 update_alternatives_SOURCES = \
32 update-alternatives.c \
35 update_alternatives_LDADD = \
36 ../lib/compat/libcompat.la \
40 dist_bashcompletions_DATA +=
42 polkitactions_DATA += org.dpkg.pkexec.update-alternatives.policy
45 do_polkit_subst = $(SED) \
46 -e 's,[@]bindir[@],$(bindir),g' \
49 org.dpkg.pkexec.update-alternatives.policy: update-alternatives.polkit.in Makefile
50 @test -d `dirname $@` || $(MKDIR_P) `dirname $@`
51 $(AM_V_GEN) GETTEXTDATADIR="$(top_srcdir)/po" \
52 $(MSGFMT) --xml --template $< -d $(top_srcdir)/po -o - \
53 | $(do_polkit_subst) >$@
57 update-alternatives.polkit.in \
61 org.dpkg.pkexec.update-alternatives.policy \
64 if BUILD_START_STOP_DAEMON
65 sbin_PROGRAMS += start-stop-daemon
67 start_stop_daemon_SOURCES = \
71 start_stop_daemon_LDADD = \
72 ../lib/compat/libcompat.la \
78 dist_bashcompletions_DATA +=
82 if BUILD_UPDATE_ALTERNATIVES
83 $(MKDIR_P) $(DESTDIR)$(sysconfdir)/alternatives
84 $(MKDIR_P) $(DESTDIR)$(admindir)/alternatives
85 $(INSTALL_DATA) $(srcdir)/README.alternatives $(DESTDIR)$(sysconfdir)/alternatives/README
89 rm -f $(DESTDIR)$(sysconfdir)/alternatives/README
92 DPKG_DATADIR=$(top_srcdir)/data \
93 UA_ROOTDIR_ENVVAR=DPKG_ROOT \
94 UA_ADMINDIR_ENVVAR=DPKG_ADMINDIR \
95 UA_ADMINDIR_DEFAULT=$(admindir) \
100 t/update_alternatives.t \
107 include $(top_srcdir)/build-aux/tap.am
109 check-local: tap-check
111 clean-local: tap-clean