2016-03-09 02:35:02 +08:00
|
|
|
EXT_DIR = src/pg
|
|
|
|
PYP_DIR = src/py
|
2016-02-19 18:57:13 +08:00
|
|
|
|
|
|
|
.PHONY: install
|
|
|
|
.PHONY: run_tests
|
2016-03-16 01:48:46 +08:00
|
|
|
.PHONY: release
|
|
|
|
.PHONY: deploy
|
2016-02-19 18:57:13 +08:00
|
|
|
|
2016-03-16 01:48:46 +08:00
|
|
|
|
|
|
|
# Generate and install developmet versions of the extension
|
|
|
|
# and python package.
|
|
|
|
# The extension is named 'dev' with a 'current' alias for easily upgrading.
|
|
|
|
# The Python package is installed in a virtual environment envs/dev/
|
|
|
|
# Requires sudo.
|
2016-02-19 18:57:13 +08:00
|
|
|
install:
|
|
|
|
$(MAKE) -C $(PYP_DIR) install
|
|
|
|
$(MAKE) -C $(EXT_DIR) install
|
|
|
|
|
2016-03-16 01:48:46 +08:00
|
|
|
# Run the tests for the installed development extension and
|
|
|
|
# python package
|
|
|
|
test:
|
|
|
|
$(MAKE) -C $(PYP_DIR) test
|
|
|
|
$(MAKE) -C $(EXT_DIR) test
|
|
|
|
|
|
|
|
# Generate a new release into release
|
|
|
|
release:
|
|
|
|
$(MAKE) -C $(EXT_DIR) release
|
|
|
|
|
|
|
|
# Install the current release.
|
|
|
|
# The Python package is installed in a virtual environment envs/X.Y.Z/
|
|
|
|
# Requires sudo.
|
|
|
|
deploy:
|
|
|
|
$(MAKE) -C $(EXT_DIR) deploy
|