2
# Copyright (C) 2011-2012 Red Hat, Inc.
4
# This file is part of LVM2.
6
# This copyrighted material is made available to anyone wishing to use,
7
# modify, copy, or redistribute it subject to the terms and conditions
8
# of the GNU Lesser General Public License v.2.1.
10
# You should have received a copy of the GNU Lesser General Public License
11
# along with this program; if not, write to the Free Software Foundation,
12
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
15
top_srcdir = @top_srcdir@
16
top_builddir = @top_builddir@
18
python_bindings: .liblvm_built
20
.liblvm_built: liblvm_python.c
21
$(PYTHON) setup.py build
25
$(LN_S) $(srcdir)/liblvm.c $@
27
include $(top_builddir)/make.tmpl
29
install_python_bindings: python_bindings
30
$(PYTHON) setup.py install --skip-build --root $(rootdir)
32
install_lvm2: install_python_bindings
36
CLEAN_TARGETS += .liblvm_built liblvm_python.c
38
DISTCLEAN_DIRS += build
39
DISTCLEAN_TARGETS += setup.py