forked from zenoss/ZenPacks.zenoss.PostgreSQL
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "src/pg8000"] | ||
path = src/pg8000 | ||
url = https://github.com/mfenniak/pg8000.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
########################################################################### | ||
# | ||
# 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 | ||
PG8000_DIR=$(SRC_DIR)/pg8000 | ||
ZP_DIR=$(PWD)/ZenPacks/zenoss/PostgreSQL | ||
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 submodule update ; \ | ||
cd $(PG8000_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 $(PG8000_DIR) ; rm -rf build dist *.egg-info | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters