]> git.proxmox.com Git - mirror_lxc.git/blob - src/python-lxc/Makefile.am
include python files in make dist and rpm
[mirror_lxc.git] / src / python-lxc / Makefile.am
1 if ENABLE_PYTHON
2
3 EXTRA_DIST = setup.py lxc.c
4
5 if HAVE_DEBIAN
6 DISTSETUPOPTS=--install-layout=deb
7 else
8 DISTSETUPOPTS=
9 endif
10
11 all:
12 CFLAGS="$(CFLAGS) -I ../../src -L../../src/lxc/" $(PYTHON) setup.py build
13
14 install:
15 if [ "$(DESTDIR)" = "" ]; then \
16 $(PYTHON) setup.py install --prefix=$(prefix) --no-compile $(DISTSETUPOPTS); \
17 else \
18 $(PYTHON) setup.py install --root=$(DESTDIR) --prefix=$(prefix) --no-compile $(DISTSETUPOPTS); \
19 fi
20
21 clean:
22 rm -rf build
23
24 endif