Statistics
| Branch: | Tag: | Revision:

root / lib / Makefile.am @ cdb08f44

History | View | Annotate | Download (922 Bytes)

1
CLEANFILES = $(nodist_pkgpython_PYTHON) *.py[oc]
2

    
3
nodist_pkgpython_PYTHON = _autoconf.py
4
pkgpython_PYTHON = __init__.py backend.py cli.py cmdlib.py config.py \
5
	objects.py errors.py logger.py ssh.py utils.py rpc.py \
6
	bdev.py hypervisor.py opcodes.py mcpu.py constants.py \
7
	ssconf.py locking.py
8

    
9
all-local: _autoconf.py
10

    
11
_autoconf.py: Makefile
12
	{ echo '# This file is automatically generated, do not edit!'; \
13
	  echo '#'; \
14
	  echo "PACKAGE_VERSION = '$(PACKAGE_VERSION)'"; \
15
	  echo "LOCALSTATEDIR = '$(localstatedir)'"; \
16
	  echo "SYSCONFDIR = '$(sysconfdir)'"; \
17
	  echo "SSH_INITD_SCRIPT = '$(SSH_INITD_SCRIPT)'"; \
18
	  echo "EXPORT_DIR = '$(EXPORT_DIR)'"; \
19
	  echo "OS_SEARCH_PATH = [$(OS_SEARCH_PATH)]"; \
20
	  echo "XEN_KERNEL = '$(XEN_KERNEL)'"; \
21
	  echo "XEN_INITRD = '$(XEN_INITRD)'"; \
22
	} > $@
23

    
24
pre-check: all
25
	for i in $(pkgpython_PYTHON); do \
26
		if test ! -f $$i; then $(LN_S) $(srcdir)/$$i $$i; fi; \
27
	done