From 11ed31bfe7de07707b2be506b4dde4322f478b9f Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN" Date: Sun, 9 Apr 2017 10:20:19 +0200 Subject: [PATCH] Makefile: generated yacc/lex/gperf source are maintainer-clean Those files should not be cleaned using the standard distclean or clean rules, because they "may require special tools to rebuild" and thus should be kept, especially in released tree. They should only be removed inmaintainer mode (but a "git clean -dX" will remove them too!). Signed-off-by: "Yann E. MORIN" --- Makefile.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 0142940..058690a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -15,6 +15,7 @@ noinst_LIBRARIES = CLEANFILES = DISTCLEANFILES = +MAINTAINERCLEANFILES = BUILT_SOURCES = #=============================================================================== @@ -96,7 +97,7 @@ BUILT_SOURCES += \ libs/parser/lconf.c # Still, .c files generated from .y files are not cleaned by default, # so yconf.c must be explicitly listed: -CLEANFILES += \ +MAINTAINERCLEANFILES += \ libs/parser/hconf.c \ libs/parser/lconf.c \ libs/parser/yconf.c -- 2.39.5