aboutsummaryrefslogtreecommitdiff
path: root/Makefile.am
blob: 19e8ef2b8408c73330f9861b772d48f75306290b (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
CLEANFILES = *~ done-check gmon.out *.gcov *.gcno  *.gcda *.loT \
	automake-deps-dist-hack.tmp automake-deps-built-hack.tmp *.epicfail
MAINTAINERCLEANFILES = Makefile.in configure config/* aclocal.m4 \
			config.h config.h.in INSTALL
AUTOMAKE_OPTIONS = 1.11 dist-bzip2 no-dist-gzip foreign parallel-tests
EXTRA_DIST = autogen.bash autotools_prepare.bash automake-deps-dist-hack.tmp
SUBDIRS = . misc paludis python ruby src doc hooks vim bash-completion zsh-completion pkg-config

DISTCHECK_CONFIGURE_FLAGS = --enable-ruby --enable-ruby-doc --enable-vim \
	--enable-python --enable-python-doc --enable-xml \
	--with-ruby-install-dir='$${DESTDIR}$${prefix}/ruby_dir' \
	--with-hacked-log-dir='$${DESTDIR}$${prefix}/log_dir' \
	--with-repositories=default,accounts,gemcutter \
	--with-environments=default,portage \
	--with-clients=default,cave \
	--with-default-distribution=giant-space-monkey \
	--enable-search-index

automake-deps-built-hack.tmp : built-sources-subdirs
	touch $@

BUILT_SOURCES = automake-deps-built-hack.tmp

automake-deps-dist-hack.tmp : all
	touch $@

dist-hook :
	rm $(distdir)/automake-deps-dist-hack.tmp

doxygen : built-sources
	$(MAKE) -C doc $@

epydoc : all
	$(MAKE) -C doc $@

htmldocs :
	$(MAKE) -C doc $@

documentation : doxygen epydoc htmldocs
	$(MAKE) -C doc $@

check-local : all
	touch $(top_builddir)/done-check

install-data-local :
	@[ -f $(top_builddir)/done-check ] || echo || true
	@[ -f $(top_builddir)/done-check ] || echo "**************************************" || true
	@[ -f $(top_builddir)/done-check ] || echo "Looks like you didn't run 'make check'" || true
	@[ -f $(top_builddir)/done-check ] || echo "      No cookies for you today.       " || true
	@[ -f $(top_builddir)/done-check ] || echo "**************************************" || true
	@[ -f $(top_builddir)/done-check ] || echo || true

built-sources : $(BUILT_SOURCES) built-sources-subdirs

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

all-then-check :
	$(MAKE) all
	$(MAKE) check