Add make dist target

This commit is contained in:
Christophe Dumez
2011-06-18 13:35:25 +00:00
parent 3529c5c7a0
commit 921512e51d
3 changed files with 21 additions and 12 deletions

View File

@@ -2,3 +2,12 @@ TEMPLATE = subdirs
SUBDIRS += src
include(version.pri)
# Dist
dist.commands += rm -fR ../$${PROJECT_NAME}-$${PROJECT_VERSION}/ &&
dist.commands += svn export . ../$${PROJECT_NAME}-$${PROJECT_VERSION} &&
dist.commands += tar zcpvf ../$${PROJECT_NAME}-$${PROJECT_VERSION}.tar.gz ../$${PROJECT_NAME}-$${PROJECT_VERSION} &&
dist.commands += rm -fR ../$${PROJECT_NAME}-$${PROJECT_VERSION}
QMAKE_EXTRA_TARGETS += dist