dpkg (1.18.25) stretch; urgency=medium
[dpkg] / utils / Makefile.am
CommitLineData
1479465f
GJ
1## Process this file with automake to produce Makefile.in
2
3localedir = $(datadir)/locale
4AM_CPPFLAGS = \
5 -DADMINDIR=\"$(admindir)\" \
6 -DLOCALEDIR=\"$(localedir)\" \
7 -DLOGDIR=\"$(logdir)\" \
8 -DSYSCONFDIR=\"$(sysconfdir)\" \
9 -idirafter $(top_srcdir)/lib/compat \
10 -I$(top_builddir) \
11 -I$(top_srcdir)/lib
12
13EXTRA_DIST = \
14 README.alternatives \
15 $(test_scripts) \
16 $(nil)
17
18bin_PROGRAMS =
19
20if BUILD_UPDATE_ALTERNATIVES
21bin_PROGRAMS += update-alternatives
22endif
23
24update_alternatives_SOURCES = \
25 update-alternatives.c
26
27update_alternatives_CPPFLAGS = \
28 -DALT_TMP_EXT=\".dpkg-tmp\" \
29 -DADMINDIR_ENVVAR=\"DPKG_ADMINDIR\" \
30 $(AM_CPPFLAGS)
31
32update_alternatives_LDADD = \
33 ../lib/compat/libcompat.la \
34 $(LIBINTL) \
35 $(nil)
36
37sbin_PROGRAMS =
38
39if BUILD_START_STOP_DAEMON
40sbin_PROGRAMS += start-stop-daemon
41
42start_stop_daemon_SOURCES = \
43 start-stop-daemon.c
44
45start_stop_daemon_LDADD = \
46 ../lib/compat/libcompat.la \
47 $(PS_LIBS) \
48 $(KVM_LIBS) \
49 $(nil)
50endif
51
52install-data-local:
53if BUILD_UPDATE_ALTERNATIVES
54 $(MKDIR_P) $(DESTDIR)$(sysconfdir)/alternatives
55 $(MKDIR_P) $(DESTDIR)$(admindir)/alternatives
56 $(INSTALL_DATA) $(srcdir)/README.alternatives $(DESTDIR)$(sysconfdir)/alternatives/README
57endif
58
59uninstall-local:
60 rm -f $(DESTDIR)$(sysconfdir)/alternatives/README
61
62TEST_ENV_VARS = DPKG_DATADIR=$(top_srcdir)/data
63
64test_tmpdir = t.tmp
65test_scripts = \
66 t/update_alternatives.t
67
68include $(top_srcdir)/check.am
69
70clean-local: check-clean