aboutsummaryrefslogtreecommitdiff
path: root/Makefile.am
blob: 4dca2369b96b1e3b80e7eec2174d1206907aa20c (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
CLEANFILES = *~ done-check gmon.out *.gcov *.gcno *.gcda \
	automake-deps-dist-hack.tmp automake-deps-built-hack.tmp
MAINTAINERCLEANFILES = Makefile.in configure config/* aclocal.m4 \
			config.h config.h.in INSTALL COPYING
AUTOMAKE_OPTIONS = dist-bzip2 no-dist-gzip std-options
EXTRA_DIST = autogen.bash automake-deps-dist-hack.tmp ChangeLog.old.bz2
SUBDIRS = misc test paludis python ruby src doc hooks eselect vim bash-completion zsh-completion pkg-config

DISTCHECK_CONFIGURE_FLAGS = --enable-qa --enable-ruby --enable-glsa --enable-vim --enable-python \
	--with-ruby-install-dir='$${DESTDIR}$${prefix}/ruby_dir' \
	--with-repositories=default \
	--with-environments=default,portage \
	--with-clients=default,accerso,contrarius,importare,inquisitio,instruo \
	--with-default-distribution=giant-space-monkey \
	--enable-htmltidy

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

BUILT_SOURCES = automake-deps-built-hack.tmp

automake-deps-dist-hack.tmp : distcheck-deps-subdirs
	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 :
	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 $(SUBDIRS) ; do $(MAKE) -C $$s built-sources || exit 1 ; done

distcheck-deps : $(DISTCHECK_DEPS) distcheck-deps-subdirs

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

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