Suggestion for new Makefile #336
ggs67
started this conversation in
Improvement suggestions
Replies: 1 comment 2 replies
-
Why do you need to alter the Makefile? In the future, we will provide a way for these reports to be uploaded and made available as a source of comparison for everyone. You can already do a |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have altered the Makefile and would like to know if this could be an acceptable contribution and, if so how to contribute, via fork (overkill?) or just post here by attachment ?
The changed/new features;
Future features:
NOTE: usually one would implement clean first and then distclean, but the solution cleaning needs some thinking in this case before implementation so maybe distclean gest first while not being real distclean without solution-cleaner
solution-cleaner
I have several possible paths for the solution cleaner. The traditional path would be that each solution get invoked by the cleaner to clean its own files with its knowledge about itself.
The second path would be to generate a file cache at first run of make and to clean every file not in the cache including itself
And last but not least, use git ls-files to identify the native files.
Each of these paths has its own advantages and drawbacks, and I am currently in favor of solution 2.
The reason against the first path is that solutions are added from many sources and many already there which may make solution local cleaning a hard work as many contributors may not update their solution, and the cleaner will only work when all solutions have been updated
The reason against path 3 is that it assumes that the environment is a checkout of git not installed by any other means (like tarball). This could be solved by adding the git URI but this then requires git and access to github, both potential reasons why git was not used in the first place (for example system without internet access).
But as I said, this is still under investigation. I did only detail it here for discussion)
Beta Was this translation helpful? Give feedback.
All reactions