Adding support to specify the MAC of an instance in batcher
[ganeti-local] / Makefile.am
index fa3a0a5..d3c77e5 100644 (file)
@@ -1,7 +1,22 @@
-# standard automake rules
+ACLOCAL_AMFLAGS = -I autotools
 
-SUBDIRS = man lib scripts daemons docs testing tools
-EXTRA_DIST = docs/examples/ganeti.initd
+SUBDIRS = man lib scripts daemons doc test tools qa devel
+EXTRA_DIST = NEWS DEVNOTES
+
+.PHONY: ganeti
+ganeti:
+       cd $(top_builddir) && rm -f $@ && $(LN_S) lib $@
+
+pre-check: ganeti
+       $(MAKE) -C lib $@
+       $(MAKE) -C lib/rapi $@
+
+# 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
 
 # custom rules
 depgraph: depgraph.png
@@ -15,3 +30,8 @@ depgraph.ps: depgraph.dot
 depgraph.dot: ganeti/*.py
        pylint.python2.4 --indent-string '  ' --rcfile=/dev/null \
          --reports y --int-import-graph $@ --persistent n ganeti >/dev/null
+
+install-exec-local:
+       @mkdir_p@ "$(DESTDIR)${localstatedir}/lib/ganeti" \
+         "$(DESTDIR)${localstatedir}/log/ganeti" \
+         "$(DESTDIR)${localstatedir}/run/ganeti"