summaryrefslogtreecommitdiffstats
path: root/src/Makefile.am
blob: b1003f4288309bbf99cd01ae1c3c4c94d32bc11d (plain)
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
79
80
81
82
83
84
85
86
## Process this file with automake to produce Makefile.in

localedir = $(datadir)/locale
pkgconfdir = $(sysconfdir)/@PACKAGE@

AM_CPPFLAGS = \
	-DLOCALEDIR=\"$(localedir)\" \
	-DADMINDIR=\"$(admindir)\" \
	-idirafter $(top_srcdir)/lib/compat \
	-I$(top_builddir) \
	-I$(top_srcdir)/lib
LDADD = \
	../lib/dpkg/libdpkg.la \
	$(LIBINTL)


EXTRA_DIST = \
	$(test_scripts) \
	$(nil)

bin_PROGRAMS = \
	dpkg \
	dpkg-divert \
	dpkg-query \
	dpkg-statoverride \
	dpkg-trigger

dpkg_SOURCES = \
	archives.c archives.h \
	cleanup.c \
	configure.c \
	depcon.c \
	enquiry.c \
	errors.c \
	file-match.c file-match.h \
	filters.c filters.h \
	force.c force.h \
	help.c \
	main.c main.h \
	packages.c \
	perpkgstate.c \
	remove.c \
	script.c \
	select.c \
	selinux.c \
	trigproc.c \
	unpack.c \
	update.c \
	verify.c \
	$(nil)

dpkg_LDADD = \
	$(LDADD) \
	$(SELINUX_LIBS)

dpkg_divert_SOURCES = \
	divertcmd.c

dpkg_query_SOURCES = \
	querycmd.c

dpkg_statoverride_SOURCES = \
	force.c force.h \
	selinux.c \
	statcmd.c

dpkg_statoverride_LDADD = \
	$(LDADD) \
	$(SELINUX_LIBS)

dpkg_trigger_SOURCES = \
	trigcmd.c

install-data-local:
	$(MKDIR_P) $(DESTDIR)$(pkgconfdir)/dpkg.cfg.d
	$(MKDIR_P) $(DESTDIR)$(admindir)/info
	$(MKDIR_P) $(DESTDIR)$(admindir)/updates

test_tmpdir = t.tmp

test_scripts = \
	t/dpkg_divert.t

include $(top_srcdir)/check.am

clean-local: check-clean