3 QMAKEVERSION = $$[QMAKE_VERSION]
4 ISQT4 = $$find(QMAKEVERSION, ^[2-9])
6 error("Use the qmake include with Qt4.4 or greater, on Debian that is qmake-qt4");
12 # The global.pri defines the VERSION of the project
13 include(src/global.pri)
16 QMAKE_EXTRA_TARGETS += changelog icon man release tarball
18 changelog.target = ChangeLog
19 changelog.commands = \
20 svn up && svn2cl --group-by-day --reparagraph
21 changelog.CONFIG = phony
23 icon.target = data/$${TARGET}.png
24 icon.commands = convert data/$${TARGET}.svg data/$${TARGET}.png
25 icon.depends = data/$${TARGET}.svg
27 man.target = data/$${TARGET}.1
28 man.commands = pod2man --utf8 --center=\"Offlince conference scheduler\" --release=\"Version $${VERSION}\" data/$${TARGET}.pod > data/$${TARGET}.1
29 man.depends = data/$${TARGET}.pod
31 release.depends = tarball
33 tarball.target = $${TARGET}-$${VERSION}.tar.gz
35 $(DEL_FILE) -r $${TARGET}-$${VERSION} ; \
36 $(MKDIR) $${TARGET}-$${VERSION} ; \
37 $(COPY_DIR) * $${TARGET}-$${VERSION}/ ; \
38 $(DEL_FILE) $${TARGET}-$${VERSION}/*.pro.user* \
39 $${TARGET}-$${VERSION}/$${TARGET}-$${VERSION}.tar.gz \
40 $(DEL_FILE) -r $${TARGET}-$${VERSION}/$${TARGET}-$${VERSION} \
41 $${TARGET}-$${VERSION}/Makefile ; \
42 tar -cz --exclude=.svn --exclude=*.tar.gz -f $$tarball.target $${TARGET}-$${VERSION} ; \
43 $(DEL_FILE) -r $${TARGET}-$${VERSION}
44 tarball.depends = changelog icon man