[5ede637] | 1 | # confclerk.pro |
---|
[0c658c1] | 2 | |
---|
| 3 | QMAKEVERSION = $$[QMAKE_VERSION] |
---|
| 4 | ISQT4 = $$find(QMAKEVERSION, ^[2-9]) |
---|
| 5 | isEmpty( ISQT4 ) { |
---|
[79a7671] | 6 | error("Use the qmake include with Qt4.7 or greater, on Debian that is qmake-qt4"); |
---|
[0c658c1] | 7 | } |
---|
| 8 | |
---|
| 9 | TEMPLATE = subdirs |
---|
[b90f02a] | 10 | SUBDIRS = src |
---|
[96344e7] | 11 | |
---|
[d17dd78] | 12 | # The global.pri defines the VERSION of the project |
---|
| 13 | include(src/global.pri) |
---|
| 14 | |
---|
[2e08065] | 15 | QMAKE_EXTRA_TARGETS += changelog icon man release releaseclean tarball signature |
---|
[880be1b] | 16 | |
---|
| 17 | changelog.target = ChangeLog |
---|
| 18 | changelog.commands = \ |
---|
[b716480] | 19 | git pull && /usr/share/gnulib/build-aux/gitlog-to-changelog > ChangeLog |
---|
[880be1b] | 20 | changelog.CONFIG = phony |
---|
| 21 | |
---|
[0346302] | 22 | icon.target = data/$${TARGET}.png |
---|
[e5dfc61] | 23 | icon.commands = convert -transparent white data/$${TARGET}.svg data/$${TARGET}.png |
---|
[0346302] | 24 | icon.depends = data/$${TARGET}.svg |
---|
| 25 | |
---|
[813d8dd] | 26 | man.target = data/$${TARGET}.1 |
---|
[f622c99] | 27 | man.commands = \ |
---|
[19d1f2e] | 28 | pod2man --utf8 --center=\"Offline conference scheduler\" --release=\"Version $${VERSION}\" data/$${TARGET}.pod > data/$${TARGET}.1 |
---|
[813d8dd] | 29 | man.depends = data/$${TARGET}.pod |
---|
| 30 | |
---|
[e84ed04] | 31 | releaseclean.commands = \ |
---|
[2e08065] | 32 | $(DEL_FILE) data/$${TARGET}.png data/$${TARGET}.1 ChangeLog $${TARGET}-$${VERSION}.tar.gz.asc |
---|
[0af3939] | 33 | release.depends = distclean releaseclean tarball signature |
---|
[e84ed04] | 34 | #releaseclean.CONFIG = phony |
---|
[880be1b] | 35 | |
---|
| 36 | tarball.target = $${TARGET}-$${VERSION}.tar.gz |
---|
| 37 | tarball.commands = \ |
---|
| 38 | $(DEL_FILE) -r $${TARGET}-$${VERSION} ; \ |
---|
| 39 | $(MKDIR) $${TARGET}-$${VERSION} ; \ |
---|
[496685d] | 40 | $(COPY_DIR) * $${TARGET}-$${VERSION}/ ; \ |
---|
[80589bb] | 41 | $(DEL_FILE) $${TARGET}-$${VERSION}/*.pro.user* \ |
---|
[496685d] | 42 | $${TARGET}-$${VERSION}/$${TARGET}-$${VERSION}.tar.gz \ |
---|
| 43 | $(DEL_FILE) -r $${TARGET}-$${VERSION}/$${TARGET}-$${VERSION} \ |
---|
| 44 | $${TARGET}-$${VERSION}/Makefile ; \ |
---|
[6bbaac5] | 45 | tar -cz --exclude=.svn --exclude=.git --exclude=*.tar.gz -f $$tarball.target $${TARGET}-$${VERSION} ; \ |
---|
[880be1b] | 46 | $(DEL_FILE) -r $${TARGET}-$${VERSION} |
---|
[118b982] | 47 | tarball.depends = changelog icon man |
---|
[2e08065] | 48 | |
---|
| 49 | signature.target = $${TARGET}-$${VERSION}.tar.gz.asc |
---|
[f622c99] | 50 | signature.commands = \ |
---|
| 51 | gpg --armor --detach-sign $${TARGET}-$${VERSION}.tar.gz |
---|
[2e08065] | 52 | signature.depends = tarball |
---|