2016-02-18 02:53:35 +03:00
#
# Copyright (C) 2016 Red Hat, Inc. All rights reserved.
#
# This file is part of LVM2.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
srcdir = @srcdir@
top_srcdir = @top_srcdir@
top_builddir = @top_builddir@
2021-03-03 16:45:25 +03:00
lvmdbuspydir = $( python3dir) /lvmdbusd
lvmdbusdir = $( DESTDIR) $( lvmdbuspydir)
2016-02-18 02:53:35 +03:00
LVMDBUS_SRCDIR_FILES = \
automatedproperties.py \
background.py \
cfg.py \
cmdhandler.py \
fetch.py \
job.py \
loader.py \
lv.py \
2018-12-14 23:50:09 +03:00
main.py \
2016-02-18 02:53:35 +03:00
manager.py \
objectmanager.py \
pv.py \
request.py \
state.py \
udevwatch.py \
utils.py \
2018-12-14 23:50:09 +03:00
vg.py \
__init__.py
2016-02-18 02:53:35 +03:00
LVMDBUS_BUILDDIR_FILES = \
2017-12-14 15:40:05 +03:00
lvmdb.py \
lvm_shell_proxy.py \
2016-02-18 02:53:35 +03:00
path.py
2017-12-14 15:40:05 +03:00
LVMDBUSD = lvmdbusd
2016-02-18 02:53:35 +03:00
2018-05-18 17:15:25 +03:00
CLEAN_DIRS += __pycache__
2016-02-18 02:53:35 +03:00
i n c l u d e $( top_builddir ) / m a k e . t m p l
.PHONY : install_lvmdbusd
2017-12-14 15:40:05 +03:00
all :
2018-11-29 19:09:27 +03:00
$( Q) test -x $( LVMDBUSD) || chmod 755 $( LVMDBUSD)
2017-12-14 15:40:05 +03:00
2021-03-02 18:29:07 +03:00
install_lvmdbusd : $( LVMDBUSD )
2018-11-29 19:09:27 +03:00
@echo " [INSTALL] $< "
$( Q) $( INSTALL_DIR) $( sbindir)
$( Q) $( INSTALL_SCRIPT) $( LVMDBUSD) $( sbindir)
2021-03-03 16:45:25 +03:00
$( Q) $( INSTALL_DIR) $( lvmdbusdir)
$( Q) ( cd $( srcdir) ; $( INSTALL_DATA) $( LVMDBUS_SRCDIR_FILES) $( lvmdbusdir) )
$( Q) $( INSTALL_DATA) $( LVMDBUS_BUILDDIR_FILES) $( lvmdbusdir)
$( Q) PYTHON = $( PYTHON3) $( PYCOMPILE) --destdir " $( DESTDIR) " --basedir " $( lvmdbuspydir) " $( LVMDBUS_SRCDIR_FILES) $( LVMDBUS_BUILDDIR_FILES)
$( Q) $( CHMOD) 755 $( lvmdbusdir) /__pycache__
$( Q) $( CHMOD) 444 $( lvmdbusdir) /__pycache__/*.py[ co]
2016-02-18 02:53:35 +03:00
install_lvm2 : install_lvmdbusd
install : install_lvm 2
2016-06-02 12:58:54 +03:00
DISTCLEAN_TARGETS += \
2017-12-14 15:40:05 +03:00
$( LVMDBUS_BUILDDIR_FILES) \
$( LVMDBUSD)