Add new resource file to app.pro
[toast/confclerk.git] / fosdem-schedule.pro
index 6b0d0c7..ca934a2 100644 (file)
@@ -9,3 +9,28 @@ qmake-qt4");
 
 TEMPLATE = subdirs
 SUBDIRS = src
+
+VERSION = 0.5.0
+
+QMAKE_CLEAN += src/bin/*.a
+QMAKE_EXTRA_TARGETS += tarball icon changelog release
+
+changelog.target = ChangeLog
+changelog.commands = \
+       svn up && svn2cl --group-by-day --reparagraph
+changelog.CONFIG = phony
+
+icon.target = data/$${TARGET}.png
+icon.commands = convert data/$${TARGET}.svg data/$${TARGET}.png
+icon.depends = data/$${TARGET}.svg
+
+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 icon