Revision 9ff7e35c

b/Makefile.am
1
# standard automake rules
2 1
SUBDIRS = man lib scripts daemons doc test tools qa
3

  
4 2
EXTRA_DIST = NEWS
5 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

  
6 11
# custom rules
7 12
depgraph: depgraph.png
8 13

  
b/configure.ac
1 1
# Configure script for Ganeti
2

  
3 2
AC_PREREQ(2.59)
4 3
AC_INIT(ganeti, 1.2b2, ganeti@googlegroups.com)
5 4
AC_CONFIG_AUX_DIR(autotools)
5
AC_CONFIG_SRCDIR(configure)
6 6
AM_INIT_AUTOMAKE([foreign tar-ustar])
7 7

  
8 8
# --with-ssh-initscript=...
......
35 35

  
36 36
# Check common programs
37 37
AC_PROG_INSTALL
38
AC_PROG_LN_S
38 39

  
39 40
# Check for Python
40 41
AM_PATH_PYTHON(2.4)
b/lib/Makefile.am
19 19
	  echo "EXPORT_DIR = '$(EXPORT_DIR)'"; \
20 20
	  echo "OS_SEARCH_PATH = [$(OS_SEARCH_PATH)]"; \
21 21
	} > $@
22

  
23
pre-check: all
24
	for i in $(pkgpython_PYTHON); do \
25
		if test ! -f $$i; then $(LN_S) $(srcdir)/$$i $$i; fi; \
26
	done
b/test/Makefile.am
1
TESTS = ganeti.hooks_unittest.py ganeti.utils_unittest.py
2
TESTS_ENVIRONMENT = PYTHONPATH=.:$(srcdir)
1
TESTS = \
2
  ganeti.config_unittest.py \
3
  ganeti.hooks_unittest.py \
4
  ganeti.utils_unittest.py
5
TESTS_ENVIRONMENT = PYTHONPATH=.:$(top_builddir)
3 6

  
4
check_DATA = ganeti
5
ganeti:
6
	rm -f ganeti
7
	ln -s $(top_srcdir)/lib ganeti
7
check-am: do-pre-check
8

  
9
do-pre-check:
10
	$(MAKE) -C $(top_builddir) pre-check
8 11

  
9 12
EXTRA_DIST = $(TESTS) mocks.py
10 13
CLEANFILES = *.py[co]
11
MAINTAINERCLEANFILES = ganeti

Also available in: Unified diff