From 17f69ba735c4d0aee9006adf4c0abbbe152d4b1d Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Sun, 2 Jan 2011 02:57:33 +0100 Subject: [PATCH] Fixed Makefile dependencies of the test suite. --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 47cfd159..f4a5ecee 100644 --- a/Makefile +++ b/Makefile @@ -27,12 +27,14 @@ ENV_LIB = $(ENV_DIR)/lib SOURCE_C := $(wildcard psycopg/*.c psycopg/*.h) SOURCE_PY := $(wildcard lib/*.py) +SOURCE_TESTS := $(wildcard tests/*.py) SOURCE_DOC := $(wildcard doc/src/*.rst) -SOURCE := $(SOURCE_C) $(SOURCE_PY) $(SOURCE_DOC) +SOURCE := $(SOURCE_C) $(SOURCE_PY) $(SOURCE_TESTS) $(SOURCE_DOC) PACKAGE := $(BUILD_DIR)/psycopg2 PLATLIB := $(PACKAGE)/_psycopg.so -PURELIB := $(patsubst lib/%,$(PACKAGE)/%,$(SOURCE_PY)) +PURELIB := $(patsubst lib/%,$(PACKAGE)/%,$(SOURCE_PY)) \ + $(patsubst tests/%,$(PACKAGE)/tests/%,$(SOURCE_TESTS)) BUILD_OPT := --build-lib=$(BUILD_DIR) BUILD_EXT_OPT := --build-lib=$(BUILD_DIR) @@ -107,6 +109,9 @@ $(PACKAGE)/%.py: lib/%.py $(PYTHON) setup.py build_py $(BUILD_OPT) touch $@ +$(PACKAGE)/tests/%.py: tests/%.py + $(PYTHON) setup.py build_py $(BUILD_OPT) + touch $@ $(SDIST): docs MANIFEST $(SOURCE) $(PYTHON) setup.py sdist $(SDIST_OPT)