source: confclerk.pro @ 496685d

qt5
Last change on this file since 496685d was 496685d, checked in by gregor herrmann <gregoa@…>, 10 years ago

Improve release target in .pro

  • Property mode set to 100644
File size: 1.1 KB
Line 
1# confclerk.pro
2
3QMAKEVERSION = $$[QMAKE_VERSION]
4ISQT4 = $$find(QMAKEVERSION, ^[2-9])
5isEmpty( ISQT4 ) {
6error("Use the qmake include with Qt4.4 or greater, on Debian that is
7qmake-qt4");
8}
9
10TEMPLATE = subdirs
11SUBDIRS = src
12
13VERSION = 0.5.0
14
15QMAKE_DISTCLEAN += src/bin/*.a
16QMAKE_EXTRA_TARGETS += tarball icon changelog release
17
18changelog.target = ChangeLog
19changelog.commands = \
20        svn up && svn2cl --group-by-day --reparagraph
21changelog.CONFIG = phony
22
23icon.target = data/$${TARGET}.png
24icon.commands = convert data/$${TARGET}.svg data/$${TARGET}.png
25icon.depends = data/$${TARGET}.svg
26
27release.depends = tarball
28
29tarball.target = $${TARGET}-$${VERSION}.tar.gz
30tarball.commands = \
31        $(DEL_FILE) -r $${TARGET}-$${VERSION} ; \
32        $(MKDIR) $${TARGET}-$${VERSION} ; \
33        $(COPY_DIR) * $${TARGET}-$${VERSION}/ ; \
34        $(DEL_FILE) $${TARGET}-$${VERSION}/*.pro.user \
35                $${TARGET}-$${VERSION}/$${TARGET}-$${VERSION}.tar.gz \
36                $(DEL_FILE) -r $${TARGET}-$${VERSION}/$${TARGET}-$${VERSION} \
37                $${TARGET}-$${VERSION}/Makefile ; \
38        tar -cz --exclude=.svn -f $$tarball.target $${TARGET}-$${VERSION} ; \
39        $(DEL_FILE) -r $${TARGET}-$${VERSION}
40tarball.depends = changelog icon distclean
Note: See TracBrowser for help on using the repository browser.