Dpkg::Vendor::Debian: Move time64 buildflags feature from future to abi
[dpkg.git] / utils / Makefile.am
blob71873a5ce0f21e3f14e8ae17fa7f770a1742ba50
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 CLEANFILES = \
15         org.dpkg.pkexec.update-alternatives.policy \
16         # EOL
18 EXTRA_DIST = \
19         README.alternatives \
20         update-alternatives.polkit.in \
21         $(test_scripts) \
22         # EOL
24 pkexecdir = $(datadir)/polkit-1/actions
25 pkexec_DATA =
27 bin_PROGRAMS =
29 if BUILD_UPDATE_ALTERNATIVES
30 pkexec_DATA += org.dpkg.pkexec.update-alternatives.policy
31 bin_PROGRAMS += update-alternatives
32 endif
34 do_polkit_subst = $(SED) \
35         -e 's,[@]bindir[@],$(bindir),g' \
36         # EOL
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 \
46         # EOL
48 update_alternatives_CPPFLAGS = \
49         -DALT_TMP_EXT=\".dpkg-tmp\" \
50         -DADMINDIR_ENVVAR=\"DPKG_ADMINDIR\" \
51         -DINSTDIR_ENVVAR=\"DPKG_ROOT\" \
52         $(AM_CPPFLAGS) \
53         # EOL
55 update_alternatives_LDADD = \
56         ../lib/compat/libcompat.la \
57         $(LIBINTL) \
58         # EOL
60 sbin_PROGRAMS =
62 if BUILD_START_STOP_DAEMON
63 sbin_PROGRAMS += start-stop-daemon
65 start_stop_daemon_SOURCES = \
66         start-stop-daemon.c \
67         # EOL
69 start_stop_daemon_LDADD = \
70         ../lib/compat/libcompat.la \
71         $(SOCKET_LIBS) \
72         $(PS_LIBS) \
73         $(KVM_LIBS) \
74         # EOL
75 endif
77 install-data-local:
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
82 endif
84 uninstall-local:
85         rm -f $(DESTDIR)$(sysconfdir)/alternatives/README
87 TEST_ENV_VARS = \
88         DPKG_DATADIR=$(top_srcdir)/data \
89         UA_ROOTDIR_ENVVAR=DPKG_ROOT \
90         UA_ADMINDIR_ENVVAR=DPKG_ADMINDIR \
91         UA_ADMINDIR_DEFAULT=$(admindir) \
92         # EOL
94 test_tmpdir = t.tmp
95 test_scripts = \
96         t/update_alternatives.t \
97         # EOL
99 include $(top_srcdir)/build-aux/tap.am
101 check-local: tap-check
103 clean-local: tap-clean