source: confclerk.pro @ b5fa774

Last change on this file since b5fa774 was b5fa774, checked in by gregor herrmann <gregor@…>, 12 months ago

confclerk.pro: add --date parameter to pod2man call.

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