-
Notifications
You must be signed in to change notification settings - Fork 585
Add makedepend.file target in the generated Makefile #23402
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
base: blead
Are you sure you want to change the base?
Conversation
Please could you explain what making this change accomplishes? Whether the resulting file is named |
Exactly, makedepend.file: makedepend_file.SH config.sh
$(SHELL) makedepend_file.SH Here is the code of SH_to_target() {
echo $@ | sed -e s/\\\.SH//g -e s/_/./g
} An example is the target config.h: config_h.SH config.sh
$(SHELL) config_h.SH |
Yes, but why?
|
I wanted to make as few changes as possible without changing the name of Anyway, the main goal of this pull request is not about renaming. It's about recreating automatically the generated script |
Apologies if the answer is obvious, but why not add this target:
|
This is also another way to do it with even less changes. However, I prefer to use the variable |
Yeah I think that makes more sense than renaming it to |
…akedependfile instead of makedepend.file.
Ok, I have added a commit for this renaming. |
I ran Before
After
Am I correct in thinking that the net effect of this p.r. is:
|
Add
makedepend_file.SH
in the variableSH
ofMakefile.SH
.This is for adding the following target in the generated
Makefile
to recreatemakedepend.file
when the scriptmakedepend_file.SH
has been changed:makedepend.file: makedepend_file.SH config.sh $(SHELL) makedepend_file.SH
The generated file has been renamed from
makedepend_file
tomakedepend.file
to be in line withSH_to_target()
ofMakefile.SH
.SH_to_target()
replaces in the script name the underscore by dot.