Fixed dependencies of the sdist target

This commit is contained in:
Daniele Varrazzo 2010-11-15 09:35:28 +00:00
parent 0a2856477c
commit 58079c6c91

View File

@ -34,6 +34,7 @@ TESTDB = psycopg2_test
SOURCE_C := $(wildcard psycopg/*.c psycopg/*.h)
SOURCE_PY := $(wildcard lib/*.py)
SOURCE_DOC := $(wildcard doc/src/*.rst)
SOURCE := $(SOURCE_C) $(SOURCE_PY) $(SOURCE_DOC)
PACKAGE := $(BUILD_DIR)/psycopg2
PLATLIB := $(PACKAGE)/_psycopg.so
@ -114,10 +115,10 @@ $(PACKAGE)/%.py: lib/%.py
$(PYTHON) setup.py build $(BUILD_OPT)
$(SDIST): docs MANIFEST
$(SDIST): docs MANIFEST $(SOURCE)
$(PYTHON) setup.py sdist $(SDIST_OPT)
MANIFEST: MANIFEST.in
MANIFEST: MANIFEST.in $(SOURCE)
# Run twice as MANIFEST.in includes MANIFEST
$(PYTHON) setup.py sdist --manifest-only
$(PYTHON) setup.py sdist --manifest-only