diff --git a/Makefile b/Makefile index 78c596198093a504844100182c943e38ee73b0ed..bd6f42e0b4f520e00086b47ea69618cf9536e073 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,8 @@ all: @echo "make clean - Get rid of scratch and byte files" source: - $(PYTHON) setup.py sdist $(COMPILE) --dist-dir=SOURCES --prune + if test ! -d SOURCES; then mkdir SOURCES; fi + git archive --prefix="avocado-$(VERSION)/" -o "SOURCES/avocado-$(VERSION).tar.gz" HEAD install: $(PYTHON) setup.py install --root $(DESTDIR) $(COMPILE)