Release 1.22.6
[dpkg.git] / utils / Makefile.am
blob2ce3bceb86ff6a56f7259f5a581c91ae705d0549
1 ## Process this file with automake to produce Makefile.in
3 AM_CPPFLAGS = \
4         -DADMINDIR=\"$(admindir)\" \
5         -DLOCALEDIR=\"$(localedir)\" \
6         -DLOGDIR=\"$(logdir)\" \
7         -DSYSCONFDIR=\"$(sysconfdir)\" \
8         -DRUNSTATEDIR=\"$(runstatedir)\" \
9         -idirafter $(top_srcdir)/lib/compat \
10         -I$(top_builddir) \
11         -I$(top_srcdir)/lib \
12         # EOL
14 sbin_PROGRAMS =
15 bin_PROGRAMS =
16 dist_bashcompletions_DATA =
17 polkitactions_DATA =
18 EXTRA_DIST =
19 CLEANFILES =
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\" \
28         $(AM_CPPFLAGS) \
29         # EOL
31 update_alternatives_SOURCES = \
32         update-alternatives.c \
33         # EOL
35 update_alternatives_LDADD = \
36         ../lib/compat/libcompat.la \
37         $(LIBINTL) \
38         # EOL
40 dist_bashcompletions_DATA +=
42 polkitactions_DATA += org.dpkg.pkexec.update-alternatives.policy
43 endif
45 do_polkit_subst = $(SED) \
46         -e 's,[@]bindir[@],$(bindir),g' \
47         # EOL
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) >$@
55 EXTRA_DIST += \
56         README.alternatives \
57         update-alternatives.polkit.in \
58         # EOL
60 CLEANFILES += \
61         org.dpkg.pkexec.update-alternatives.policy \
62         # EOL
64 if BUILD_START_STOP_DAEMON
65 sbin_PROGRAMS += start-stop-daemon
67 start_stop_daemon_SOURCES = \
68         start-stop-daemon.c \
69         # EOL
71 start_stop_daemon_LDADD = \
72         ../lib/compat/libcompat.la \
73         $(SOCKET_LIBS) \
74         $(PS_LIBS) \
75         $(KVM_LIBS) \
76         # EOL
78 dist_bashcompletions_DATA +=
79 endif
81 install-data-local:
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
86 endif
88 uninstall-local:
89         rm -f $(DESTDIR)$(sysconfdir)/alternatives/README
91 TEST_ENV_VARS = \
92         DPKG_DATADIR=$(top_srcdir)/data \
93         UA_ROOTDIR_ENVVAR=DPKG_ROOT \
94         UA_ADMINDIR_ENVVAR=DPKG_ADMINDIR \
95         UA_ADMINDIR_DEFAULT=$(admindir) \
96         # EOL
98 test_tmpdir = t.tmp
99 test_scripts = \
100         t/update_alternatives.t \
101         # EOL
103 EXTRA_DIST += \
104         $(test_scripts) \
105         # EOL
107 include $(top_srcdir)/build-aux/tap.am
109 check-local: tap-check
111 clean-local: tap-clean