QMAKEVERSION = $$[QMAKE_VERSION]
ISQT4 = $$find(QMAKEVERSION, ^[2-9])
isEmpty( ISQT4 ) {
-error("Use the qmake include with Qt4.4 or greater, on Debian that is
-qmake-qt4");
+ error("Use the qmake include with Qt4.4 or greater, on Debian that is qmake-qt4");
}
TEMPLATE = subdirs
SUBDIRS = src
-VERSION = 0.5.0
+# The global.pri defines the VERSION of the project
+include(src/global.pri)
-QMAKE_CLEAN += src/bin/*.a
-QMAKE_EXTRA_TARGETS += tarball icon changelog release
+
+QMAKE_DISTCLEAN += src/bin/*.a
+QMAKE_EXTRA_TARGETS += changelog icon man release tarball
changelog.target = ChangeLog
changelog.commands = \
icon.commands = convert data/$${TARGET}.svg data/$${TARGET}.png
icon.depends = data/$${TARGET}.svg
+man.target = data/$${TARGET}.1
+man.commands = pod2man --utf8 --center=\"Offlince conference scheduler\" --release=\"Version $${VERSION}\" data/$${TARGET}.pod > data/$${TARGET}.1
+man.depends = data/$${TARGET}.pod
+
release.depends = tarball
tarball.target = $${TARGET}-$${VERSION}.tar.gz
tarball.commands = \
$(DEL_FILE) -r $${TARGET}-$${VERSION} ; \
$(MKDIR) $${TARGET}-$${VERSION} ; \
- $(COPY_DIR) --parents * $${TARGET}-$${VERSION}/ ; \
+ $(COPY_DIR) * $${TARGET}-$${VERSION}/ ; \
+ $(DEL_FILE) $${TARGET}-$${VERSION}/*.pro.user \
+ $${TARGET}-$${VERSION}/$${TARGET}-$${VERSION}.tar.gz \
+ $(DEL_FILE) -r $${TARGET}-$${VERSION}/$${TARGET}-$${VERSION} \
+ $${TARGET}-$${VERSION}/Makefile ; \
tar -cz --exclude=.svn -f $$tarball.target $${TARGET}-$${VERSION} ; \
$(DEL_FILE) -r $${TARGET}-$${VERSION}
-tarball.depends = changelog icon
+tarball.depends = changelog icon man distclean