aboutsummaryrefslogtreecommitdiff
path: root/Makefile.am
blob: be34792bcdd8e8bcf3a039404adeee1a259b4978 (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
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
SUBDIRS = misc tr1 test paludis ruby src doc hooks eselect vim bash-completion zsh-completion

DISTCHECK_CONFIGURE_FLAGS = --enable-qa --enable-ruby --enable-glsa \
	--with-ruby-install-dir='$${DESTDIR}$${prefix}/ruby_dir' \
	--with-repositories=default,cran \
	--with-environments=default,portage \
	--with-clients=default,contrarius,inquisitio

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

BUILT_SOURCES = automake-deps-built-hack.tmp

automake-deps-dist-hack.tmp : built-sources-subdirs
	$(MAKE) -C paludis/util
	$(MAKE) -C paludis/args
	$(MAKE) -C paludis/ libpaludismanpagethings.la
	$(MAKE) -C paludis/qa message-sr.hh
	$(MAKE) -C src/output liboutput.a
	$(MAKE) -C src/common_args libcommonargs.a
	$(MAKE) -C src/clients/paludis paludis.1 paludis.html
	$(MAKE) -C src/clients/qualudis qualudis.1 qualudis.html
	$(MAKE) -C src/clients/contrarius contrarius.1 contrarius.html
	$(MAKE) -C src/clients/adjutrix adjutrix.1 adjutrix.html
	$(MAKE) -C src/clients/inquisitio inquisitio.1 inquisitio.html
	touch $@

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

doxygen rdoc homepage htmlpages upload-homepage :
	$(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