Backports Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH] backports: Keep kconf/zconf.{lex,tab}.c during "make clean"
@ 2019-06-22  8:50 anthony.wong
  0 siblings, 0 replies; only message in thread
From: anthony.wong @ 2019-06-22  8:50 UTC (permalink / raw)
  To: hauke, mcgrof; +Cc: backports

From: Anthony Wong <yp@anthonywong.net>

On recent kernel versions, build fails after "make clean" is run
because "make clean" removes kconf/zconf.{lex,tab}.c, so presesrve
them during "make clean".

Signed-off-by: Anthony Wong <yp@anthonywong.net>
---
 backport/Makefile.real | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/backport/Makefile.real b/backport/Makefile.real
index 65508028..e772a9cf 100644
--- a/backport/Makefile.real
+++ b/backport/Makefile.real
@@ -115,7 +115,10 @@ uninstall:
 	@echo Reboot.
 	@echo
 
+EXCLUDE_CLEAN := kconf/zconf.lex.c kconf/zconf.tab.c
 .PHONY: clean
 clean:
+	@$(foreach f, $(EXCLUDE_CLEAN), mv $(f) $(f).orig;)
 	@$(MAKE) -f Makefile.build clean
 	@$(MAKE) -C kconf clean
+	@$(foreach f, $(EXCLUDE_CLEAN), mv $(f).orig $(f);)
-- 
2.11.0

--
To unsubscribe from this list: send the line "unsubscribe backports" in

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-22  8:50 [PATCH] backports: Keep kconf/zconf.{lex,tab}.c during "make clean" anthony.wong

Backports Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/backports/0 backports/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 backports backports/ https://lore.kernel.org/backports \
		backports@vger.kernel.org backports@archiver.kernel.org
	public-inbox-index backports


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.backports


AGPL code for this site: git clone https://public-inbox.org/ public-inbox