2013-08-07 21:47:24 +02:00
|
|
|
TEMPLATE = subdirs
|
|
|
|
SUBDIRS += src tests
|
2014-02-06 21:17:04 +01:00
|
|
|
|
|
|
|
tests.depends = src
|
2014-02-06 22:50:48 +01:00
|
|
|
|
|
|
|
include(pyotherside.pri)
|
|
|
|
|
2014-02-24 19:39:27 +01:00
|
|
|
!win32 {
|
|
|
|
# The make used in the Qt MSVC toolchain does not support $^, but
|
|
|
|
# as we are not going to do source builds on Windows, just make
|
|
|
|
# the source release (sdist) target depend on anything but win32.
|
|
|
|
tar.target = $${PROJECTNAME}-$${VERSION}.tar
|
|
|
|
tar.commands = git archive --format=tar --prefix=$${PROJECTNAME}-$${VERSION}/ --output=$@ $${VERSION}
|
2014-02-06 22:50:48 +01:00
|
|
|
|
2014-02-24 19:39:27 +01:00
|
|
|
targz.target = $${PROJECTNAME}-$${VERSION}.tar.gz
|
|
|
|
targz.depends = tar
|
|
|
|
targz.commands = gzip $^
|
2014-02-06 22:50:48 +01:00
|
|
|
|
2014-02-24 19:39:27 +01:00
|
|
|
sdist.target = sdist
|
|
|
|
sdist.depends = targz
|
2014-02-06 22:50:48 +01:00
|
|
|
|
2014-02-24 19:39:27 +01:00
|
|
|
QMAKE_EXTRA_TARGETS += tar targz sdist
|
|
|
|
}
|