Skip to contentSkip to conversation

build: remove scanner.c and parser_bison.c with `maintainer-clean`

PATCH Applied Jeremy Sowden 2 participants 2 messages Dec 16, 2021 – Dec 17, 2021 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 build: remove scanner.c and parser_bison.c with `maintainer-clean`

automake recommends shipping the output of bison and lex in distribution tar-balls and runs bison and lex during make dist (this has the advantage that end-users don't need to have bison or lex installed to compile the software). Accordingly, automake also recommends removing these files with make maintainer-clean and generates rules to do so. Therefore, remove scanner.c and parser_bison.c from CLEANFILES.

---
 src/Makefile.am | 2 --
 1 file changed, 2 deletions(-)
src/Makefile.am +0 -2
index 01c12c81bce7..6ab0752337b2 100644
@@ -2,8 +2,6 @@ include $(top_srcdir)/Make_global.am
 
 sbin_PROGRAMS = nft
 
-CLEANFILES = scanner.c parser_bison.c
-
 AM_CPPFLAGS = -I$(top_srcdir)/include
 AM_CPPFLAGS += -DDEFAULT_INCLUDE_PATH="\"${sysconfdir}\"" \
 		${LIBMNL_CFLAGS} ${LIBNFTNL_CFLAGS}
Signature · 1 line
2.34.1
maintainer Applied
#1 lore raw
Quoted 6 lines · Jeremy Sowden

automake recommends shipping the output of bison and lex in distribution tar-balls and runs bison and lex during make dist (this has the advantage that end-users don't need to have bison or lex installed to compile the software). Accordingly, automake also recommends removing these files with make maintainer-clean and generates rules to do so. Therefore, remove scanner.c and parser_bison.c from CLEANFILES.

Applied, thanks