Makefile: break apart steps in make clean
#54
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The
make clean
target consists of a singlerm
call that passes everygenerated file, object file, and dependency directory. This results in
a command line that's around 53,800 characters long.
On Linux, the maximum length of a command line is 131,072 or 262,144
characters, however on Windows the limit is 32,768.
The 53,800 character command simply fails to run on Windows, which is a
problem when the first command that gets run is
make clean
.Break this target into steps, first removing the output files, then the
object files, then any generated garbage, and then the object depedency
directories.
This fixes
make clean
(and as a result yosys) on Windows.Signed-off-by: Sean Cross [email protected]