Never clean files in quilt status directory
authorBen Hutchings <ben@decadent.org.uk>
Sun, 15 Jul 2018 20:53:39 +0000 (21:53 +0100)
committerBen Hutchings <benh@debian.org>
Mon, 28 Jun 2021 14:24:37 +0000 (15:24 +0100)
commit02bb5ed0e7a14762ca3f28ba01fa3eacd56981d6
tree9c08870e4d2e92a8359e26b1deb93de7fc0f8f44
parent1422cd1ec2e2a332c37e5ad508b60376ccc267a2
Never clean files in quilt status directory

The top-level "distclean" and "mrproper" targets delete zero-size
files in the source, perhaps assumed to be stamp files.  This is fine
for actual source direcgtories, but disastrous for a quilt status
directory.

For each patch, quilt stores the previous versions of the modified
files in a subdirectory of .pc.  If the patch creates a file, this
file will be empty.  Removing it effectively removes the file creation
from the patch.

The .git directory is already excluded from the clean rules for
a similar reason, so do the same for .pc.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Name never-clean-files-in-quilt-status-directory.patch
Makefile