Skip to content

Move cleanup logic into Makefile #309

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 5, 2023
Merged

Move cleanup logic into Makefile #309

merged 1 commit into from
Apr 5, 2023

Conversation

kostis
Copy link
Collaborator

@kostis kostis commented Apr 4, 2023

PR #308 brought up the issue that the clean command of rebar3 had a Unix-based script as a post_hook that could not be run on Windows. Rather that adopting #308 and run the risk of leaving out some OSes, move all cleanup logic, including calling cleanup scripts, to the Makefile instead. This should avoid rebar3 clean crashing on Windows.

While at it, move the rebar3 clean call from the distclean to the clean target of Makefile, which seems more standard.

Closes #308

PR #308 brought up the issue that the `clean` command of rebar3 had a
Unix-based script as a `post_hook` that could not be run on Windows.
Rather that adopting #308 and run the risk of leaving out some OSs out,
move all cleanup logic, including calling cleanup scripts, to the
Makefile instead. This should avoid `rebar3 clean` crashing on Windows.

While at it, move the `rebar3 clean` call from the `distclean` to the
`clean` target of Makefile, which seems more standard (and kosher).

Closes #308
@codecov-commenter
Copy link

Codecov Report

Merging #309 (d6a7353) into master (3de5f72) will increase coverage by 0.10%.
The diff coverage is n/a.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff             @@
##           master     #309      +/-   ##
==========================================
+ Coverage   85.35%   85.46%   +0.10%     
==========================================
  Files          14       14              
  Lines        4590     4590              
==========================================
+ Hits         3918     3923       +5     
+ Misses        672      667       -5     

see 6 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@kostis kostis merged commit d079c2f into master Apr 5, 2023
@kostis kostis deleted the cleanup-clean branch April 5, 2023 18:50
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