Add release and changelog targets to project file.
[toast/confclerk.git] / fosdem-schedule.pro
index 74220d60ce956ed7e3086d00ad548c1fb4c82ed1..bdff21138356595f78599843c4d6b6e123207470 100644 (file)
@@ -10,5 +10,23 @@ qmake-qt4");
 TEMPLATE = subdirs
 SUBDIRS = src
 
-# for changelog target:
-# svn2cl --group-by-day --reparagraph
+VERSION = 0.5.0
+
+QMAKE_EXTRA_TARGETS += tarball changelog release
+QMAKE_DISTCLEAN += ChangeLog
+
+changelog.target = ChangeLog
+changelog.commands = \
+       svn up && svn2cl --group-by-day --reparagraph
+changelog.CONFIG = phony
+
+release.depends = tarball
+
+tarball.target = $${TARGET}-$${VERSION}.tar.gz
+tarball.commands = \
+       $(DEL_FILE) -r $${TARGET}-$${VERSION} ; \
+       $(MKDIR) $${TARGET}-$${VERSION} ; \
+       $(COPY_DIR) --parents * $${TARGET}-$${VERSION}/ ; \
+       tar -cz --exclude=.svn -f $$tarball.target $${TARGET}-$${VERSION} ; \
+       $(DEL_FILE) -r $${TARGET}-$${VERSION}
+tarball.depends = changelog