File: Makefile.am

package info (click to toggle)
dpkg 1.16.18
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 37,188 kB
  • sloc: ansic: 28,432; perl: 15,012; sh: 6,984; cpp: 4,518; makefile: 1,082; lex: 227; sed: 16
file content (78 lines) | stat: -rw-r--r-- 1,654 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
## Process this file with automake to produce Makefile.in

localedir = $(datadir)/locale
AM_CPPFLAGS = \
	-DADMINDIR=\"$(admindir)\" \
	-DLOCALEDIR=\"$(localedir)\" \
	-DLOGDIR=\"$(logdir)\" \
	-DSYSCONFDIR=\"$(sysconfdir)\" \
	-idirafter $(top_srcdir)/lib/compat \
	-I$(top_builddir) \
	-I$(top_srcdir)/lib

EXTRA_DIST = \
	README.alternatives \
	$(test_cases)

bin_PROGRAMS =

if BUILD_UPDATE_ALTERNATIVES
bin_PROGRAMS += update-alternatives
endif

update_alternatives_SOURCES = \
	update-alternatives.c

update_alternatives_LDADD = \
	../lib/compat/libcompat.a \
	$(LIBINTL) \
	$(UA_LIBS)

sbin_PROGRAMS =

if BUILD_START_STOP_DAEMON
sbin_PROGRAMS += start-stop-daemon

start_stop_daemon_SOURCES = \
	start-stop-daemon.c

start_stop_daemon_LDADD = \
	../lib/compat/libcompat.a \
	$(SSD_LIBS)
endif

if BUILD_INSTALL_INFO
sbin_PROGRAMS += dpkg-install-info

# Automake has its own install-info rule, gah
dpkg_install_info_SOURCES = install-info.c

dpkg_install_info_LDADD = \
	../lib/compat/libcompat.a
endif

transform = s/dpkg-install-info/install-info/; $(program_transform_name)

install-data-local:
if BUILD_UPDATE_ALTERNATIVES
	$(MKDIR_P) $(DESTDIR)$(sysconfdir)/alternatives
	$(MKDIR_P) $(DESTDIR)$(admindir)/alternatives
	$(INSTALL_DATA) $(srcdir)/README.alternatives $(DESTDIR)$(sysconfdir)/alternatives/README
endif

uninstall-local:
	rm -f $(DESTDIR)$(sysconfdir)/alternatives/README
if BUILD_INSTALL_INFO
	rm -f $(DESTDIR)$(sbindir)/install-info
endif

TEST_VERBOSE = 0
TEST_ENV_VARS = DPKG_DATADIR=$(top_srcdir)

test_tmpdir = t.tmp
test_cases = \
	t/100_update_alternatives.t

include $(top_srcdir)/Makecheck.am

clean-local: check-clean