""" Functions for working with Makefiles
"""
"""Turn a rules.mk file into a dictionary.
Args:
file: path to the rules.mk file
rules_mk: already parsed rules.mk the new file should be merged with
Returns:
a dictionary with the file's content
"""
=
=
=
# Filter out comments
continue
# Strip in-line comments
=
# Append
, =
=
+= +
# Set if absent
in :
, =
=
, =
=
return