Message ID | 20190622085053.6709-1-yp@anthonywong.net (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
Series | backports: Keep kconf/zconf.{lex,tab}.c during "make clean" | expand |
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);)