Skip to content

add a target mostlyclean in Makefiles#395

Merged
mpkorstanje merged 3 commits intocucumber:mainfrom
fperrad:mostlyclean
May 19, 2025
Merged

add a target mostlyclean in Makefiles#395
mpkorstanje merged 3 commits intocucumber:mainfrom
fperrad:mostlyclean

Conversation

@fperrad
Copy link
Copy Markdown
Contributor

@fperrad fperrad commented May 15, 2025

🤔 What's changed?

Add a new target mostlyclean which differs from clean by not removing the external dependencies.

mostlyclean is a well known name for a target, see https://www.gnu.org/software/make/manual/html_node/Standard-Targets.html.

⚡️ What's your motivation?

Speed up the development process with the mantra make mostlyclean acceptance
(external dependencies are seen as stable)

🏷️ What kind of change is this?

  • 🏦 Refactoring/debt/DX (improvement to code design, tooling, etc. without changing behaviour)

♻️ Anything particular you want feedback on?

📋 Checklist:

  • I agree to respect and uphold the Cucumber Community Code of Conduct
  • I've changed the behaviour of the code
    • I have added/updated tests to cover my changes.
  • My change requires a change to the documentation.
    • I have updated the documentation accordingly.
  • Users should know about my change
    • I have added an entry to the "Unreleased" section of the CHANGELOG, linking to this pull request.

This text was originally generated from a template, then edited by hand. You can modify the template here.

.PHONY: clean-gherkin-languages

clean: clean-deps ## Remove all build artifacts and files generated by the acceptance tests
mostlyclean:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Does this need a documentation string for make help?

Copy link
Copy Markdown
Contributor Author

@fperrad fperrad May 15, 2025

Choose a reason for hiding this comment

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

I don't think.

But alternately, I push a 3rd commit with an update of CONTRIBUTING.md

@mpkorstanje
Copy link
Copy Markdown
Contributor

Cheers! LGTM, small remark above

mostlyclean:
rm -rf .compared .built .run acceptance
$(MAKE) --directory=src $@
$(MAKE) --directory=src clean
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Not every makefile further down has a mostlyclean, fixed it like this, but not sure if that is what you intended.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

good for me.

@fperrad
Copy link
Copy Markdown
Contributor Author

fperrad commented May 18, 2025

rebased with your fix in c/Makefile.

@mpkorstanje mpkorstanje merged commit d99dc97 into cucumber:main May 19, 2025
34 checks passed
@mpkorstanje
Copy link
Copy Markdown
Contributor

Cheers!

@fperrad fperrad deleted the mostlyclean branch May 19, 2025 08:25
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