mclu: Add import subcommand to import existing guests.
[mclu.git] / Makefile.am
1 # mclu (mini cluster)
2 # Copyright (C) 2014 Red Hat Inc.
3 #
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2 of the License, or
7 # (at your option) any later version.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17
18 ACLOCAL_AMFLAGS = -I m4
19
20 # Why doesn't automake include _SCRIPTS and _DATA ...?
21 EXTRA_DIST = CONFIGURATION mclu.spec $(pkgdata_SCRIPTS) $(conf_DATA)
22
23 # This rule just ensures that the wrapper binary and Python files get
24 # installed when we do 'make install'.
25
26 bin_SCRIPTS = mclu
27
28 pkgdata_SCRIPTS = \
29         config.py \
30         lib.py \
31         libvirt_xml.py \
32         mclu.py \
33         mclu_build.py \
34         mclu_console.py \
35         mclu_import.py \
36         mclu_info.py \
37         mclu_list.py \
38         mclu_migrate.py \
39         mclu_reboot.py \
40         mclu_shutdown.py \
41         mclu_start.py \
42         mclu_status.py \
43         mclu_stop.py \
44         mclu_viewer.py \
45         mclu_wake.py \
46         node.py
47
48 # Configuration file.
49
50 confdir = $(sysconfdir)/$(PACKAGE_NAME)
51 conf_DATA = mclu.conf
52
53 install-data-hook:
54         mkdir -p $(DESTDIR)/$(sysconfdir)/$(PACKAGE_NAME)/xmls
55
56 CLEANFILES = \
57         *~ \
58         *.pyc \
59         config.py \
60         mclu \
61         mclu.spec
62
63 # Run pylint.
64
65 lint:
66         pylint -E $(pkgdata_SCRIPTS)