source: confclerk.pro @ 79a7671

qt5
Last change on this file since 79a7671 was 79a7671, checked in by gregor herrmann <gregor@…>, 4 years ago

ifdef qt4 and qt5

  • Property mode set to 100644
File size: 1.8 KB
Line 
1# confclerk.pro
2
3QMAKEVERSION = $$[QMAKE_VERSION]
4ISQT4 = $$find(QMAKEVERSION, ^[2-9])
5isEmpty( ISQT4 ) {
6        error("Use the qmake include with Qt4.7 or greater, on Debian that is qmake-qt4");
7}
8
9TEMPLATE = subdirs
10SUBDIRS = src
11
12# The global.pri defines the VERSION of the project
13include(src/global.pri)
14
15QMAKE_EXTRA_TARGETS += changelog icon man release releaseclean tarball signature
16
17changelog.target = ChangeLog
18changelog.commands = \
19        git pull && /usr/share/gnulib/build-aux/gitlog-to-changelog > ChangeLog
20changelog.CONFIG = phony
21
22icon.target = data/$${TARGET}.png
23icon.commands = convert -transparent white data/$${TARGET}.svg data/$${TARGET}.png
24icon.depends = data/$${TARGET}.svg
25
26man.target = data/$${TARGET}.1
27man.commands = \
28        pod2man --utf8 --center=\"Offline conference scheduler\" --release=\"Version $${VERSION}\" data/$${TARGET}.pod > data/$${TARGET}.1
29man.depends = data/$${TARGET}.pod
30
31releaseclean.commands = \
32 $(DEL_FILE) data/$${TARGET}.png data/$${TARGET}.1 ChangeLog $${TARGET}-$${VERSION}.tar.gz.asc
33release.depends = distclean releaseclean tarball signature
34#releaseclean.CONFIG = phony
35
36tarball.target = $${TARGET}-$${VERSION}.tar.gz
37tarball.commands = \
38        $(DEL_FILE) -r $${TARGET}-$${VERSION} ; \
39        $(MKDIR) $${TARGET}-$${VERSION} ; \
40        $(COPY_DIR) * $${TARGET}-$${VERSION}/ ; \
41        $(DEL_FILE) $${TARGET}-$${VERSION}/*.pro.user* \
42                $${TARGET}-$${VERSION}/$${TARGET}-$${VERSION}.tar.gz \
43                $(DEL_FILE) -r $${TARGET}-$${VERSION}/$${TARGET}-$${VERSION} \
44                $${TARGET}-$${VERSION}/Makefile ; \
45        tar -cz --exclude=.svn --exclude=.git --exclude=*.tar.gz -f $$tarball.target $${TARGET}-$${VERSION} ; \
46        $(DEL_FILE) -r $${TARGET}-$${VERSION}
47tarball.depends = changelog icon man
48
49signature.target = $${TARGET}-$${VERSION}.tar.gz.asc
50signature.commands = \
51        gpg --armor --detach-sign $${TARGET}-$${VERSION}.tar.gz
52signature.depends = tarball
Note: See TracBrowser for help on using the repository browser.