Statistics
| Branch: | Tag: | Revision:

root / Makefile.am @ 65a6f9b7

History | View | Annotate | Download (925 Bytes)

1
ACLOCAL_AMFLAGS = -I autotools
2

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

    
6
.PHONY: ganeti
7
ganeti:
8
	cd $(top_builddir) && rm -f $@ && $(LN_S) lib $@
9

    
10
pre-check: ganeti
11
	$(MAKE) -C lib $@
12
	$(MAKE) -C lib/hypervisor $@
13

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

    
21
# custom rules
22
depgraph: depgraph.png
23

    
24
depgraph.png: depgraph.dot
25
	dot -Tpng -o $@ $<
26

    
27
depgraph.ps: depgraph.dot
28
	dot -Tps -o $@ $<
29

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

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