Add make dist target

This commit is contained in:
Christophe Dumez 2011-06-18 13:35:25 +00:00
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