Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

file 41 lines (36 sloc) 1.274 kb
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
###########################################################################
#
# This program is part of Zenoss Core, an open source monitoring platform.
# Copyright (C) 2011, Zenoss Inc.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 or (at your
# option) any later version as published by the Free Software Foundation.
#
# For complete information please visit: http://www.zenoss.com/oss/
#
###########################################################################

PYTHON=python
SRC_DIR=$(PWD)/src
NOVACLIENT_DIR=$(SRC_DIR)/python-novaclient
ZP_DIR=$(PWD)/ZenPacks/zenoss/OpenStack
BIN_DIR=$(ZP_DIR)/bin
LIB_DIR=$(ZP_DIR)/lib

default: egg

egg:
# setup.py will call 'make build' before creating the egg
python setup.py bdist_egg

build:
git submodule init ; \
GIT_SSL_NO_VERIFY=true git submodule update ; \
cd $(NOVACLIENT_DIR) ; \
PYTHONPATH="$(PYTHONPATH):$(LIB_DIR)" \
$(PYTHON) setup.py install \
--install-lib="$(LIB_DIR)" \
--install-scripts="$(BIN_DIR)"

clean:
rm -rf build dist *.egg-info
find . -name '*.pyc' | xargs rm
cd $(NOVACLIENT_DIR) ; rm -rf build dist *.egg-info
rm -f $(BIN_DIR)/nova
cd $(LIB_DIR) ; rm -Rf *.egg site.py easy-install.pth
Something went wrong with that request. Please try again.