aboutsummaryrefslogtreecommitdiff
path: root/paludis/environments/no_config/Makefile.am
blob: a34072211f2074cd19c2638f2de4feb4fb26d5aa (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
CLEANFILES = *~ gmon.out *.gcov *.gcno  *.gcda *.loT ihateautomake.cc ihateautomake.o
DISTCLEANFILES = no_config_environment-sr.hh no_config_environment-sr.cc no_config_environment-se.hh \
		 no_config_environment-se.cc
MAINTAINERCLEANFILES = Makefile.in
AM_CXXFLAGS = -I$(top_srcdir) @PALUDIS_CXXFLAGS@ @PALUDIS_CXXFLAGS_VISIBILITY@
DEFS= \
	-DSYSCONFDIR=\"$(sysconfdir)\" \
	-DLIBEXECDIR=\"$(libexecdir)\" \
	-DDATADIR=\"$(datadir)\" \
	-DLIBDIR=\"$(libdir)\"

libpaludisnoconfigenvironment_@PALUDIS_PC_SLOT@_la_SOURCES = \
	no_config_environment.cc no_config_environment.hh \
	registration.cc

libpaludisnoconfigenvironment_@PALUDIS_PC_SLOT@_la_LDFLAGS = -version-info @VERSION_LIB_CURRENT@:@VERSION_LIB_REVISION@:0

libpaludisnoconfigenvironment_@PALUDIS_PC_SLOT@_la_LIBADD = \
	$(top_builddir)/paludis/util/libpaludisutil_@PALUDIS_PC_SLOT@.la \
	$(top_builddir)/paludis/libpaludis_@PALUDIS_PC_SLOT@.la

libenvdir = $(libdir)/paludis/environments/
libenv_LTLIBRARIES = libpaludisnoconfigenvironment_@PALUDIS_PC_SLOT@.la

paludis_environment_no_config_includedir = $(includedir)/paludis-$(PALUDIS_PC_SLOT)/paludis/environments/no_config
paludis_environment_no_config_include_HEADERS = \
	no_config_environment.hh \
	no_config_environment-sr.hh \
	no_config_environment-se.hh

EXTRA_DIST = \
	no_config_environment-sr.hh \
	no_config_environment-sr.cc \
	no_config_environment.sr \
	no_config_environment-se.hh \
	no_config_environment-se.cc \
	no_config_environment.se \
	no_config_environment_TEST.cc \
	no_config_environment_TEST_setup.sh \
	no_config_environment_TEST_cleanup.sh

TESTS = no_config_environment_TEST

TESTS_ENVIRONMENT = env \
	PALUDIS_EBUILD_DIR="$(top_srcdir)/ebuild/" \
	PALUDIS_EAPIS_DIR="$(top_srcdir)/paludis/repositories/e/eapis/" \
	PALUDIS_DISTRIBUTIONS_DIR="$(top_srcdir)/paludis/distributions/" \
	PALUDIS_DISTRIBUTION="gentoo" \
	PALUDIS_SKIP_CONFIG="yes" \
	PALUDIS_REPOSITORY_SO_DIR="$(top_builddir)/paludis/repositories" \
	TEST_SCRIPT_DIR="$(srcdir)/" \
	bash $(top_srcdir)/test/run_test.sh

check_PROGRAMS = $(TESTS)
check_SCRIPTS = no_config_environment_TEST_setup.sh no_config_environment_TEST_cleanup.sh

no_config_environment_TEST_SOURCES = no_config_environment_TEST.cc

no_config_environment_TEST_LDADD = \
	libpaludisnoconfigenvironment_@PALUDIS_PC_SLOT@.la \
	$(top_builddir)/paludis/util/test_extras.o \
	$(top_builddir)/test/libtest.a \
	$(top_builddir)/paludis/libpaludis_@PALUDIS_PC_SLOT@.la \
	$(top_builddir)/paludis/util/libpaludisutil_@PALUDIS_PC_SLOT@.la \
	$(DYNAMIC_LD_LIBS)

BUILT_SOURCES = \
	no_config_environment-sr.hh \
	no_config_environment-sr.cc \
	no_config_environment-se.hh \
	no_config_environment-se.cc

no_config_environment-sr.hh : no_config_environment.sr $(top_srcdir)/misc/make_sr.bash
	$(top_srcdir)/misc/make_sr.bash --header $(srcdir)/no_config_environment.sr > $@

no_config_environment-sr.cc : no_config_environment.sr $(top_srcdir)/misc/make_sr.bash
	$(top_srcdir)/misc/make_sr.bash --source $(srcdir)/no_config_environment.sr > $@

no_config_environment-se.hh : no_config_environment.se $(top_srcdir)/misc/make_se.bash
	$(top_srcdir)/misc/make_se.bash --header $(srcdir)/no_config_environment.se > $@

no_config_environment-se.cc : no_config_environment.se $(top_srcdir)/misc/make_se.bash
	$(top_srcdir)/misc/make_se.bash --source $(srcdir)/no_config_environment.se > $@

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

distcheck-deps-local : $(DISTCHECK_DEPS)

distcheck-deps : distcheck-deps-subdirs

distcheck-deps-subdirs :
	for s in $(SUBDIRS) . ; do if test x$$s = x. ; then $(MAKE) distcheck-deps-local || exit 1 ; \
	    else $(MAKE) -C $$s distcheck-deps || exit 1 ; fi ; done