bd1428966bdde65ba0ddbb7d8d689071b27b97ba
[ganeti-github.git] / Makefile.am
1 SUBDIRS = man lib scripts daemons doc test tools qa
2 EXTRA_DIST = NEWS DEVNOTES
3
4 .PHONY: ganeti
5 ganeti:
6         cd $(top_builddir) && rm -f $@ && $(LN_S) lib $@
7
8 pre-check: ganeti
9         $(MAKE) -C lib $@
10
11 # custom rules
12 depgraph: depgraph.png
13
14 depgraph.png: depgraph.dot
15         dot -Tpng -o $@ $<
16
17 depgraph.ps: depgraph.dot
18         dot -Tps -o $@ $<
19
20 depgraph.dot: ganeti/*.py
21         pylint.python2.4 --indent-string '  ' --rcfile=/dev/null \
22           --reports y --int-import-graph $@ --persistent n ganeti >/dev/null
23
24 install-exec-local:
25         @mkdir_p@ "$(DESTDIR)${localstatedir}/lib/ganeti" \
26           "$(DESTDIR)${localstatedir}/log/ganeti" \
27           "$(DESTDIR)${localstatedir}/run/ganeti"