linux/scripts/basic
Masahiro Yamada bc6df812a1 fixdep: parse Makefile more correctly to handle comments etc.
fixdep parses dependency files (*.d) emitted by the compiler.

*.d files are Makefiles describing the dependencies of the main source
file.

fixdep understands minimal Makefile syntax. It works well enough for
GCC and Clang, but not for rustc.

This commit improves the parser a little more for better processing
comments, escape sequences, etc.

My main motivation is to drop comments. rustc may output comments
(e.g. env-dep). Currentyly, rustc build rules invoke sed to remove
comments, but it is more efficient to do it in fixdep.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Acked-by: Miguel Ojeda <ojeda@kernel.org>
Tested-by: Miguel Ojeda <ojeda@kernel.org>
2023-01-22 23:43:33 +09:00
..
.gitignore randstruct: Move seed generation into scripts/basic/ 2022-05-08 01:33:07 -07:00
fixdep.c fixdep: parse Makefile more correctly to handle comments etc. 2023-01-22 23:43:33 +09:00
Makefile randstruct: Move seed generation into scripts/basic/ 2022-05-08 01:33:07 -07:00