1
0
mirror of https://github.com/thp/pyotherside.git synced 2025-01-17 23:22:53 +08:00

Project file: add "sdist" target to create source tarball

This commit is contained in:
Thomas Perl 2014-02-06 22:50:48 +01:00
parent be1edb6b5c
commit 2d6a666b52

View File

@ -2,3 +2,17 @@ TEMPLATE = subdirs
SUBDIRS += src tests
tests.depends = src
include(pyotherside.pri)
tar.target = $${PROJECTNAME}-$${VERSION}.tar
tar.commands = git archive --format=tar --prefix=$${PROJECTNAME}-$${VERSION}/ --output=$@ $${VERSION}
targz.target = $${PROJECTNAME}-$${VERSION}.tar.gz
targz.depends = tar
targz.commands = gzip $^
sdist.target = sdist
sdist.depends = targz
QMAKE_EXTRA_TARGETS += tar targz sdist