Statistics
| Branch: | Tag: | Revision:

root / Makefile.am @ 17dfc522

History | View | Annotate | Download (895 Bytes)

1 6e06b36c Iustin Pop
ACLOCAL_AMFLAGS = -I autotools
2 6e06b36c Iustin Pop
3 4e5e8bfc Michael Hanselmann
SUBDIRS = man lib scripts daemons doc test tools qa
4 832aef24 Michael Hanselmann
EXTRA_DIST = NEWS DEVNOTES
5 97a37b3f Michael Hanselmann
6 9ff7e35c Michael Hanselmann
.PHONY: ganeti
7 9ff7e35c Michael Hanselmann
ganeti:
8 9ff7e35c Michael Hanselmann
	cd $(top_builddir) && rm -f $@ && $(LN_S) lib $@
9 9ff7e35c Michael Hanselmann
10 9ff7e35c Michael Hanselmann
pre-check: ganeti
11 9ff7e35c Michael Hanselmann
	$(MAKE) -C lib $@
12 9ff7e35c Michael Hanselmann
13 b6f2e47f Iustin Pop
# a dist hook rule for catching revision control directories
14 b6f2e47f Iustin Pop
distcheck-hook:
15 b6f2e47f Iustin Pop
	if find $(top_distdir) | grep -F -e '.svn' -e '.git'; then \
16 b6f2e47f Iustin Pop
		echo "Found revision control files in final archive" 1>&2 ; \
17 b6f2e47f Iustin Pop
		exit 1; \
18 b6f2e47f Iustin Pop
	fi
19 b6f2e47f Iustin Pop
20 a8083063 Iustin Pop
# custom rules
21 a8083063 Iustin Pop
depgraph: depgraph.png
22 a8083063 Iustin Pop
23 a8083063 Iustin Pop
depgraph.png: depgraph.dot
24 a8083063 Iustin Pop
	dot -Tpng -o $@ $<
25 a8083063 Iustin Pop
26 a8083063 Iustin Pop
depgraph.ps: depgraph.dot
27 a8083063 Iustin Pop
	dot -Tps -o $@ $<
28 a8083063 Iustin Pop
29 a8083063 Iustin Pop
depgraph.dot: ganeti/*.py
30 47cdf8b9 Michael Hanselmann
	pylint.python2.4 --indent-string '  ' --rcfile=/dev/null \
31 47cdf8b9 Michael Hanselmann
	  --reports y --int-import-graph $@ --persistent n ganeti >/dev/null
32 8925faaa Iustin Pop
33 8925faaa Iustin Pop
install-exec-local:
34 38d9d95d Michael Hanselmann
	@mkdir_p@ "$(DESTDIR)${localstatedir}/lib/ganeti" \
35 2fa9f1dd Michael Hanselmann
	  "$(DESTDIR)${localstatedir}/log/ganeti" \
36 2fa9f1dd Michael Hanselmann
	  "$(DESTDIR)${localstatedir}/run/ganeti"