.pro: Add created files to QMAKE_DISTCLEAN.
[toast/confclerk.git] / confclerk.pro
index 0b88c7623359b7ad2d4b87317b5848f534eb2257..6240ec35479ff494df0806c75c08940ab7e04659 100644 (file)
@@ -12,8 +12,7 @@ SUBDIRS = src
 # The global.pri defines the VERSION of the project
 include(src/global.pri)
 
-
-QMAKE_DISTCLEAN += src/bin/*.a
+QMAKE_DISTCLEAN += data/$${TARGET}.png data/$${TARGET}.1 ChangeLog
 QMAKE_EXTRA_TARGETS += changelog icon man release tarball
 
 changelog.target = ChangeLog
@@ -36,10 +35,10 @@ tarball.commands = \
        $(DEL_FILE) -r $${TARGET}-$${VERSION} ; \
        $(MKDIR) $${TARGET}-$${VERSION} ; \
        $(COPY_DIR) * $${TARGET}-$${VERSION}/ ; \
-       $(DEL_FILE) $${TARGET}-$${VERSION}/*.pro.user \
+       $(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} ; \
+       tar -cz --exclude=.svn --exclude=*.tar.gz -f $$tarball.target $${TARGET}-$${VERSION} ; \
        $(DEL_FILE) -r $${TARGET}-$${VERSION}
-tarball.depends = changelog icon man distclean
+tarball.depends = changelog icon man