summaryrefslogtreecommitdiff
path: root/daemons/lvmdbusd/Makefile.in
blob: d9cf5d8863110e4fe185083ac0ec68ab137bd002 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#
# 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@

lvmdbuspydir = $(python3dir)/lvmdbusd
lvmdbusdir = $(DESTDIR)$(lvmdbuspydir)

LVMDBUS_SRCDIR_FILES = \
	automatedproperties.py \
	background.py \
	cfg.py \
	cmdhandler.py \
	fetch.py \
	job.py \
	loader.py \
	lv.py \
	main.py \
	manager.py \
	objectmanager.py \
	pv.py \
	request.py \
	state.py \
	udevwatch.py \
	utils.py \
	vg.py \
	__init__.py

LVMDBUS_BUILDDIR_FILES = \
	lvmdb.py \
	lvm_shell_proxy.py \
	path.py

LVMDBUSD = lvmdbusd

CLEAN_DIRS += __pycache__

include $(top_builddir)/make.tmpl

.PHONY: install_lvmdbusd

all:
	$(Q) test -x $(LVMDBUSD) || chmod 755 $(LVMDBUSD)

install_lvmdbusd: $(LVMDBUSD)
	@echo "    [INSTALL] $<"
	$(Q) $(INSTALL_DIR) $(sbindir)
	$(Q) $(INSTALL_SCRIPT) $(LVMDBUSD) $(sbindir)
	$(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]

install_lvm2: install_lvmdbusd

install: install_lvm2

DISTCLEAN_TARGETS+= \
	$(LVMDBUS_BUILDDIR_FILES) \
	$(LVMDBUSD)