Skip to content

Conversation

piecea
Copy link

@piecea piecea commented May 16, 2022

Here is the -MMD option in vppreproc.

Copy link
Member

@wsnyder wsnyder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for preparing this, here's some feedback:

vppreproc Outdated
# produces a list of makefile dependency rules suitable for use by a make utility
if ($opt_mmd) {
my $opt_output_filename_d; # .d file
my $dep_file; # MMD target
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move to inside foreach, just before set

vppreproc Outdated
my $dep_file; # MMD target
if ($opt_output_filename) {
# Create a single .d
my($filename, $dirs, $suffix) = File::Basename::fileparse($opt_output_filename, qr/\.[^.]*/);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
my($filename, $dirs, $suffix) = File::Basename::fileparse($opt_output_filename, qr/\.[^.]*/);
my ($filename, $dirs, $suffix) = File::Basename::fileparse($opt_output_filename, qr/\.[^.]*/);

@piecea
Copy link
Author

piecea commented May 17, 2022

Thanks for the feedback. Here are the changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants