aboutsummaryrefslogtreecommitdiff
path: root/ebuild/utils/Makefile.am
blob: 063e944f1700312bc0254dc0270ec4441ba64aa1 (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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
MAINTAINERCLEANFILES = Makefile.in
CLEANFILES = *~ newlib.so newlib.a dolib.so dolib.a sed

libexecprogdir = $(libexecdir)/paludis/utils

if NEED_SED_WRAPPER
libexecprog_SCRIPTS_extra = sed
endif

libexecprog_SCRIPTS = \
	canonicalise \
	dobin \
	doconfd \
	dodir \
	dodoc \
	doenvd \
	doexe \
	dohard \
	dohtml \
	doinfo \
	doinitd \
	doins \
	dolib \
	dolib.a \
	dolib.so \
	doman \
	domo \
	donewins \
	dosbin \
	dosed \
	dosym \
	dounpack \
	emake \
	fowners \
	fperms \
	getmtime \
	newbin \
	newconfd \
	newdoc \
	newenvd \
	newexe \
	newinitd \
	newins \
	newlib.a \
	newlib.so \
	newman \
	newsbin \
	prepall \
	prepallstrip \
	prepstrip \
	prepallman \
	prepman \
	prepallinfo \
	prepinfo \
	$(libexecprog_SCRIPTS_extra)

libexecprog_PROGRAMS = merge unmerge
AM_CXXFLAGS = -I$(top_srcdir)

merge_SOURCES = merge.cc merge_common.cc merge_common.hh
merge_LDADD = \
	$(top_builddir)/paludis/util/libpaludisutil.a \
	$(top_builddir)/paludis/digests/libpaludisdigests.a \
	$(top_builddir)/paludis/selinux/libpaludisselinux.a \
	$(DYNAMIC_LD_LIBS)

unmerge_SOURCES = unmerge.cc merge_common.cc merge_common.hh
unmerge_LDADD = \
	$(top_builddir)/paludis/util/libpaludisutil.a \
	$(top_builddir)/paludis/digests/libpaludisdigests.a

TESTS_ENVIRONMENT = env \
	PALUDIS_EBUILD_DIR="`$(top_srcdir)/ebuild/utils/canonicalise $(top_srcdir)/ebuild/`" \
	TOP_BUILD_DIR="`$(top_srcdir)/ebuild/utils/canonicalise $(top_builddir)/`" \
	PALUDIS_EBUILD_LOG_LEVEL="silent" \
	TEST_SCRIPT_DIR="$(srcdir)/" \
	bash $(top_srcdir)/ebuild/utils/run_test.bash

TESTS = merge_TEST.bash dobin_TEST.bash unmerge_TEST.bash
check_SCRIPTS = $(TESTS) \
	merge_TEST_setup.sh merge_TEST_cleanup.sh \
	unmerge_TEST_setup.sh unmerge_TEST_cleanup.sh

EXTRA_DIST = $(libexecprog_SCRIPTS) $(check_SCRIPTS) run_test.bash \
	newlib.so.in newlib.a.in dolib.so.in dolib.a.in prep.in

newlib.a : newlib.a.in
	cat $< > $@

newlib.so : newlib.so.in
	cat $< > $@

dolib.so : dolib.so.in
	cat $< > $@

dolib.a : dolib.a.in
	cat $< > $@

sed : sed.in
	cat $< > $@

prepall: prep.in
	cat $< >$@

prepallstrip: prep.in
	cat $< >$@

prepstrip: prep.in
	cat $< >$@

prepallman: prep.in
	cat $< >$@

prepman: prep.in
	cat $< >$@

prepallinfo: prep.in
	cat $< >$@

prepinfo: prep.in
	cat $< >$@

check_PROGRAMS =