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 \
15 org.dpkg.pkexec.update-alternatives.policy \
20 update-alternatives.polkit.in \
24 pkexecdir = $(datadir)/polkit-1/actions
29 if BUILD_UPDATE_ALTERNATIVES
30 pkexec_DATA += org.dpkg.pkexec.update-alternatives.policy
31 bin_PROGRAMS += update-alternatives
34 do_polkit_subst = $(SED) \
35 -e 's,[@]bindir[@],$(bindir),g' \
38 org.dpkg.pkexec.update-alternatives.policy: update-alternatives.polkit.in Makefile
39 @test -d `dirname $@` || $(MKDIR_P) `dirname $@`
40 $(AM_V_GEN) GETTEXTDATADIR="$(top_srcdir)/po" \
41 $(MSGFMT) --xml --template $< -d $(top_srcdir)/po -o - \
42 | $(do_polkit_subst) >$@
44 update_alternatives_SOURCES = \
45 update-alternatives.c \
48 update_alternatives_CPPFLAGS = \
49 -DALT_TMP_EXT=\".dpkg-tmp\" \
50 -DADMINDIR_ENVVAR=\"DPKG_ADMINDIR\" \
51 -DINSTDIR_ENVVAR=\"DPKG_ROOT\" \
55 update_alternatives_LDADD = \
56 ../lib/compat/libcompat.la \
62 if BUILD_START_STOP_DAEMON
63 sbin_PROGRAMS += start-stop-daemon
65 start_stop_daemon_SOURCES = \
69 start_stop_daemon_LDADD = \
70 ../lib/compat/libcompat.la \
78 if BUILD_UPDATE_ALTERNATIVES
79 $(MKDIR_P) $(DESTDIR)$(sysconfdir)/alternatives
80 $(MKDIR_P) $(DESTDIR)$(admindir)/alternatives
81 $(INSTALL_DATA) $(srcdir)/README.alternatives $(DESTDIR)$(sysconfdir)/alternatives/README
85 rm -f $(DESTDIR)$(sysconfdir)/alternatives/README
88 DPKG_DATADIR=$(top_srcdir)/data \
89 UA_ROOTDIR_ENVVAR=DPKG_ROOT \
90 UA_ADMINDIR_ENVVAR=DPKG_ADMINDIR \
91 UA_ADMINDIR_DEFAULT=$(admindir) \
96 t/update_alternatives.t \
99 include $(top_srcdir)/build-aux/tap.am
101 check-local: tap-check
103 clean-local: tap-clean