aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/gentoo/ebuild/Makefile.am
blob: 431ebc87bee912e316148488c6e09bacce4e15da (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
MAINTAINERCLEANFILES = Makefile.in
CLEANFILES = *~
SUBDIRS = . digests utils

AM_CXXFLAGS = -I$(top_srcdir) @PALUDIS_CXXFLAGS@

libexecprogdir = $(libexecdir)/paludis/

libexecprog_SCRIPTS = \
	build_functions.bash \
	builtin_fetch.bash \
	builtin_init.bash \
	builtin_merge.bash \
	builtin_metadata.bash \
	builtin_strip.bash \
	builtin_tidyup.bash \
	builtin_unmerge.bash \
	builtin_variable.bash \
	ebuild.bash \
	echo_functions.bash \
	kernel_functions.bash \
	eclass_functions.bash \
	install_functions.bash \
	list_functions.bash \
	multilib_functions.bash \
	pkg_config.bash \
	pkg_nofetch.bash \
	pkg_postinst.bash \
	pkg_postrm.bash \
	pkg_preinst.bash \
	pkg_prerm.bash \
	pkg_setup.bash \
	portage_stubs.bash \
	sandbox.bash \
	src_compile.bash \
	src_install.bash \
	src_test.bash \
	src_unpack.bash \
	usage_error.bash \
	work_around_broken_utilities.bash

TESTS_ENVIRONMENT = env \
	PALUDIS_EBUILD_DIR="$(top_srcdir)/paludis/repositories/gentoo/ebuild/" \
	PALUDIS_EBUILD_LOG_LEVEL="warning" \
	TOP_BUILD_DIR="`$(top_srcdir)/paludis/repositories/gentoo/ebuild/utils/canonicalise $(top_builddir)/`" \
	TEST_SCRIPT_DIR="$(srcdir)/" \
	bash $(top_srcdir)/test/run_test.sh $(top_srcdir)/paludis/repositories/gentoo/ebuild/run_test.bash

TESTS = echo_functions_TEST.bash list_functions_TEST.bash kernel_functions_TEST.bash \
	merge_TEST.bash unmerge_TEST.bash

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

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

check_SCRIPTS = $(TESTS) \
	merge_TEST_setup.sh merge_TEST_cleanup.sh \
	unmerge_TEST_setup.sh unmerge_TEST_cleanup.sh \
	run_test.bash $(TESTS)

EXTRA_DIST = $(libexecprog_SCRIPTS) run_test.bash $(TESTS) $(check_SCRIPTS)

built-sources : $(BUILT_SOURCES)
	for s in `echo $(SUBDIRS) | tr -d .` ; do $(MAKE) -C $$s built-sources || exit 1 ; done