be2e4e54da3c8054525321422f7f290d45b32a6cStéphane Graberif ENABLE_PYTHON
be2e4e54da3c8054525321422f7f290d45b32a6cStéphane Graber
be2e4e54da3c8054525321422f7f290d45b32a6cStéphane Graberif HAVE_DEBIAN
be2e4e54da3c8054525321422f7f290d45b32a6cStéphane Graber DISTSETUPOPTS=--install-layout=deb
be2e4e54da3c8054525321422f7f290d45b32a6cStéphane Graberelse
be2e4e54da3c8054525321422f7f290d45b32a6cStéphane Graber DISTSETUPOPTS=
be2e4e54da3c8054525321422f7f290d45b32a6cStéphane Graberendif
be2e4e54da3c8054525321422f7f290d45b32a6cStéphane Graber
be2e4e54da3c8054525321422f7f290d45b32a6cStéphane Graberall:
d79067a726f1b4a06828220cc11dd3cfbc244856Daniel Miranda $(PYTHON) setup.py build
be2e4e54da3c8054525321422f7f290d45b32a6cStéphane Graber
be2e4e54da3c8054525321422f7f290d45b32a6cStéphane Graberinstall:
d4f6fa926d92803d8b8217468be483ac2f7e270eStéphane Graber if [ "$(DESTDIR)" = "" ]; then \
d4f6fa926d92803d8b8217468be483ac2f7e270eStéphane Graber $(PYTHON) setup.py install --prefix=$(prefix) --no-compile $(DISTSETUPOPTS); \
d4f6fa926d92803d8b8217468be483ac2f7e270eStéphane Graber else \
d4f6fa926d92803d8b8217468be483ac2f7e270eStéphane Graber $(PYTHON) setup.py install --root=$(DESTDIR) --prefix=$(prefix) --no-compile $(DISTSETUPOPTS); \
d4f6fa926d92803d8b8217468be483ac2f7e270eStéphane Graber fi
be2e4e54da3c8054525321422f7f290d45b32a6cStéphane Graber
9a42db48e0bcf4f34b05a3de1cda23e06f51d131Stéphane Graberclean-local:
be2e4e54da3c8054525321422f7f290d45b32a6cStéphane Graber rm -rf build
be2e4e54da3c8054525321422f7f290d45b32a6cStéphane Graber
be2e4e54da3c8054525321422f7f290d45b32a6cStéphane Graberendif
c13c0e08da7dbfecb52e85233ac6cd17afa5d818Stéphane GraberEXTRA_DIST = \
c13c0e08da7dbfecb52e85233ac6cd17afa5d818Stéphane Graber lxc.c \
c13c0e08da7dbfecb52e85233ac6cd17afa5d818Stéphane Graber lxc/__init__.py \
f10e04e36170dbd0faae3a667d53f0af1ef6a13aStéphane Graber examples/api_test.py \
f10e04e36170dbd0faae3a667d53f0af1ef6a13aStéphane Graber examples/pyconsole.py \
f10e04e36170dbd0faae3a667d53f0af1ef6a13aStéphane Graber examples/pyconsole-vte.py