Makefile.am 931 Bytes
Newer Older
1 2
ACLOCAL_AMFLAGS = -I autotools

3
SUBDIRS = man lib scripts daemons doc test tools qa devel
4
EXTRA_DIST = NEWS DEVNOTES
5

Michael Hanselmann's avatar
Michael Hanselmann committed
6 7 8 9 10 11
.PHONY: ganeti
ganeti:
	cd $(top_builddir) && rm -f $@ && $(LN_S) lib $@

pre-check: ganeti
	$(MAKE) -C lib $@
12
	$(MAKE) -C lib/hypervisor $@
Michael Hanselmann's avatar
Michael Hanselmann committed
13

Iustin Pop's avatar
Iustin Pop committed
14 15 16 17 18 19 20
# a dist hook rule for catching revision control directories
distcheck-hook:
	if find $(top_distdir) | grep -F -e '.svn' -e '.git'; then \
		echo "Found revision control files in final archive" 1>&2 ; \
		exit 1; \
	fi

Iustin Pop's avatar
Iustin Pop committed
21 22 23 24 25 26 27 28 29 30
# custom rules
depgraph: depgraph.png

depgraph.png: depgraph.dot
	dot -Tpng -o $@ $<

depgraph.ps: depgraph.dot
	dot -Tps -o $@ $<

depgraph.dot: ganeti/*.py
31 32
	pylint.python2.4 --indent-string '  ' --rcfile=/dev/null \
	  --reports y --int-import-graph $@ --persistent n ganeti >/dev/null
Iustin Pop's avatar
Iustin Pop committed
33 34

install-exec-local:
35
	@mkdir_p@ "$(DESTDIR)${localstatedir}/lib/ganeti" \
36 37
	  "$(DESTDIR)${localstatedir}/log/ganeti" \
	  "$(DESTDIR)${localstatedir}/run/ganeti"