-
-
Notifications
You must be signed in to change notification settings - Fork 728
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
source/Makefile: add HOST_PYTHON, extend clean target, remove -.d generation #1701
Conversation
…ty of environment setup / extend clean target to make source directory as new / rename -.d autogenerated temp file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well I'm rather concerned anyone is running python 3.7 or older now (given <3.7 is already dead, and 3.7 is EOL in less than two weeks). But I see no issue with a python path. :)
However, please dont remove the hexfile folder, the intent is explicit for it to remain to make it easier when your reflashing a Miniware iron a stack of times.
source/Makefile
Outdated
rm -Rf Core/Gen | ||
rm -Rf $(OUTPUT_DIR_BASE) | ||
rm -Rf $(HEXFILE_DIR)/* | ||
rm -Rf $(HEXFILE_DIR) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please dont rm the Hexfile folder if we can, it makes it far more annoying as it means file mangers will kick you out (as the folder is gone) or a terminal in the folder will have a broken path.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aaaaha! I haven't thought that it may be useful, sorry-sorry. 😰 Will re-do patch as soon as I can. 👌
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, wait a minute... I sincerely sorry to bother you, just expressing some suggestion before updating PR - how about adding another one target, something like this right next to clean
target:
mrproper / clean-all: clean
rmdir $(HEXFILE_DIR)
Just curious what do you think about such approach? Thanks.
Update: it's not my stubbornness but tidiness - I just think that it's a good approach to have additional clean[]
target cleaning source tree to default state, that's it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clean-all
would be totally fine by me :) 😁 🤗
I totally get you on having a full cleanup; I probably should throw a comment on it as to why that folder gets left hanging around. It was deliberate, but probably not obvious until one does a few device bring ups 🤣
Oh, and the odd file never bothered me; but good to have that resolved 😁 |
|
Probably swap |
No problem. Was debating over the target name anyway myself. Thanks for resolving. 🤭 |
Thank you for the help with this 🙇🏼 |
It's my pleasure & honor to finally commit back at least something useful for this amazingly useful and incredibly awesome project. 🙏 |
Set of changes:
HOST_PYTHON
variable for flexibility of environment setupclean
target to make source directory as new-.d
autogenerated temp fileHOST_PYTHON
variable for flexibility of environment setup.Without patch on some environments:
Final
has been implemented inPython
starting fromv3.8
. Some systems providePython 3.8
but not aspython3
. So instead of messing with environment, this patch implements variable for providing custom version. After the patch:In addition, this patch extends
clean
target to make source dir as new.Also, this patch renames hard-to-remove
-.d
temp file which seems not to be used during compilation but generated byFrom
man gcc
(for-MD
option) (I had no idea about this myself):Since we have input as
stdin
, hence we get-.d
in our directories like a gum glued to shoes. By adding-MF Core/Gen/macros.tmp
temp file will be generated where it should.