Move removal of generated file into new releaseclean target.
authorgregor herrmann <gregoa@debian.org>
Tue, 28 May 2013 19:23:01 +0000 (19:23 +0000)
committergregor herrmann <gregoa@debian.org>
Tue, 28 May 2013 19:23:01 +0000 (19:23 +0000)
confclerk.pro

index 6240ec3..625060d 100644 (file)
@@ -12,8 +12,7 @@ SUBDIRS = src
 # The global.pri defines the VERSION of the project
 include(src/global.pri)
 
-QMAKE_DISTCLEAN += data/$${TARGET}.png data/$${TARGET}.1 ChangeLog
-QMAKE_EXTRA_TARGETS += changelog icon man release tarball
+QMAKE_EXTRA_TARGETS += changelog icon man release releaseclean tarball
 
 changelog.target = ChangeLog
 changelog.commands = \
@@ -28,7 +27,11 @@ 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
+release.depends = releaseclean tarball
+
+releaseclean.commands = \
+ $(DEL_FILE) data/$${TARGET}.png data/$${TARGET}.1 ChangeLog
+#releaseclean.CONFIG = phony
 
 tarball.target = $${TARGET}-$${VERSION}.tar.gz
 tarball.commands = \