-
Notifications
You must be signed in to change notification settings - Fork 0
/
GNUmakefile
36 lines (30 loc) · 973 Bytes
/
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
##############################################################################
#
# Copyright (C) Zenoss, Inc. 2012, all rights reserved.
#
# This content is made available according to terms specified in
# License.zenoss under the directory where your Zenoss product is installed.
#
##############################################################################
PYTHON=$(shell which python)
HERE=$(PWD)
TXWSMAN_DIR=$(HERE)/src/txwsman
ZP_DIR=$(HERE)/ZenPacks/zenoss/WSMAN
LIB_DIR=$(ZP_DIR)/lib
BIN_DIR=$(ZP_DIR)/bin
.DEFAULT_GOAL := egg
.PHONY: egg
egg:
# setup.py will call 'make build' before creating the egg
python setup.py bdist_egg
.PHONY: build
build:
mkdir -p $(LIB_DIR)/txwsman/request
cp -r $(TXWSMAN_DIR)/txwsman/*.py $(LIB_DIR)/txwsman/
cp -r $(TXWSMAN_DIR)/txwsman/request/*.xml $(LIB_DIR)/txwsman/request/
.PHONY: dependencies
update:
git submodule update --remote --merge
.PHONY: clean
clean:
rm -rf lib build dist *.egg-info $(LIB_DIR)/txwsman