blob: a0f68dee174ead62aa6b2b39c8948f763e9b8c2a (
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
|
#
# Copyright (C) 2015 <contact@redhat.com>
#
# Author: Loic Dachary <loic@dachary.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Library Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Library Public License for more details.
#
check_SCRIPTS += ceph-disk/run-tox.sh
EXTRA_DIST += \
ceph-disk/AUTHORS.rst \
ceph-disk/ceph_disk/__init__.py \
ceph-disk/ceph_disk/main.py \
ceph-disk/Makefile.am \
ceph-disk/MANIFEST.in \
ceph-disk/README.rst \
ceph-disk/requirements.txt \
ceph-disk/run-tox.sh \
ceph-disk/setup.py \
ceph-disk/test-requirements.txt \
ceph-disk/tests/test_main.py \
ceph-disk/tox.ini
ceph-disk-all: ceph-disk/virtualenv
ceph-disk/virtualenv:
cd $(srcdir)/ceph-disk ; ../tools/setup-virtualenv.sh ; virtualenv/bin/python setup.py develop
ceph-disk-clean:
cd $(srcdir)/ceph-disk ; python setup.py clean ; rm -fr wheelhouse .tox virtualenv .coverage *.egg-info
ceph-disk-install-data:
cd $(srcdir)/ceph-disk ; \
if test "$(DESTDIR)" ; then \
if lsb_release -si | grep --quiet 'Ubuntu\|Debian\|Devuan' ; then \
options=--install-layout=deb ; \
else \
options=--prefix=/usr ; \
fi ; \
root="--root=$(DESTDIR) --install-script=/usr/sbin" ; \
fi ; \
python setup.py install $$root $$options
LOCAL_ALL += ceph-disk-all
LOCAL_CLEAN += ceph-disk-clean
LOCAL_INSTALLDATA += ceph-disk-install-data
|