chiark / gitweb /
awful debugging hacking
[dpkg] / utils / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 localedir = $(datadir)/locale
4 AM_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
13 EXTRA_DIST = \
14         README.alternatives \
15         $(test_scripts) \
16         $(nil)
17
18 bin_PROGRAMS =
19
20 if BUILD_UPDATE_ALTERNATIVES
21 bin_PROGRAMS += update-alternatives
22 endif
23
24 update_alternatives_SOURCES = \
25         update-alternatives.c
26
27 update_alternatives_CPPFLAGS = \
28         -DALT_TMP_EXT=\".dpkg-tmp\" \
29         -DADMINDIR_ENVVAR=\"DPKG_ADMINDIR\" \
30         $(AM_CPPFLAGS)
31
32 update_alternatives_LDADD = \
33         ../lib/compat/libcompat.la \
34         $(LIBINTL) \
35         $(nil)
36
37 sbin_PROGRAMS =
38
39 if BUILD_START_STOP_DAEMON
40 sbin_PROGRAMS += start-stop-daemon
41
42 start_stop_daemon_SOURCES = \
43         start-stop-daemon.c
44
45 start_stop_daemon_LDADD = \
46         ../lib/compat/libcompat.la \
47         $(PS_LIBS) \
48         $(KVM_LIBS) \
49         $(nil)
50 endif
51
52 install-data-local:
53 if 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
57 endif
58
59 uninstall-local:
60         rm -f $(DESTDIR)$(sysconfdir)/alternatives/README
61
62 TEST_ENV_VARS = DPKG_DATADIR=$(top_srcdir)/data
63
64 test_tmpdir = t.tmp
65 test_scripts = \
66         t/update_alternatives.t
67
68 include $(top_srcdir)/check.am
69
70 clean-local: check-clean