aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Hutchings <ben@decadent.org.uk>2018-07-15 21:53:39 +0100
committerBen Hutchings <ben@decadent.org.uk>2019-01-18 03:10:14 +0000
commitf46648e5315f2f8aff74bcd723edc24ea4c6d29e (patch)
tree37a0b0132f7d43e5a4503c0dd4cf1d8076edb2f2
parent13b9b8c904408fdf4a72b9ab991a5a52749b4bcf (diff)
downloadklibc-f46648e5315f2f8aff74bcd723edc24ea4c6d29e.tar.gz
[klibc] 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. Link: https://www.zytor.com/pipermail/klibc/2018-July/003999.html Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index dc10fc5da9af16..cd15149c73ec5d 100644
--- a/Makefile
+++ b/Makefile
@@ -158,7 +158,7 @@ FORCE: ;
###
# clean: remove generated files
# mrproper does a full cleaning including .config and linux symlink
-FIND_IGNORE := \( -name .git \) -prune -o
+FIND_IGNORE := \( -name .git -o -name .pc \) -prune -o
quiet_cmd_rmfiles = $(if $(wildcard $(rm-files)),RM $(wildcard $(rm-files)))
cmd_rmfiles = rm -f $(rm-files)
clean: