forked from trebortech/ZenPacks.zenoss.AWS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GNUmakefile
48 lines (40 loc) · 1.33 KB
/
GNUmakefile
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
###########################################################################
#
# This program is part of Zenoss Core, an open source monitoring platform.
# Copyright (C) 2013 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=$(shell which python)
HERE=$(PWD)
BOTO_DIR=$(HERE)/src/boto
ZP_DIR=$(HERE)/ZenPacks/zenoss/AWS
LIB_DIR=$(ZP_DIR)/lib
BIN_DIR=$(ZP_DIR)/bin
default: egg
egg:
# setup.py will call 'make build' before creating the egg
python setup.py bdist_egg
build:
mkdir -p $(LIB_DIR) $(BIN_DIR)
cd $(BOTO_DIR) ; \
PYTHONPATH="$(PYTHONPATH):$(LIB_DIR)" \
$(PYTHON) setup.py install \
--install-lib="$(LIB_DIR)" \
--install-scripts="$(BIN_DIR)"
clean:
rm -rf lib build dist *.egg-info $(BIN_DIR) $(LIB_DIR)
cd $(BOTO_DIR) ; rm -rf build dist *.egg-info
json:
cd ZenPacks/zenoss/AWS; \
wget --quiet https://raw.github.com/garnaat/missingcloud/master/aws.json; \
if [ -f aws.json.1 ]; then rm aws.json; mv aws.json.1 aws.json; fi
test:
runtests ZenPacks.zenoss.AWS
pep8:
./check_pep8.sh