-
Notifications
You must be signed in to change notification settings - Fork 585
Update the makefile to regenerate makedependfile when the developer changes the content of makedependfile.SH #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?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -498,7 +498,7 @@ SH_to_target() { | |
echo $@ | sed -e s/\\\.SH//g -e s/_/./g | ||
} | ||
|
||
SH='Makefile.SH cflags.SH config_h.SH makedepend.SH myconfig.SH runtests.SH pod/Makefile.SH' | ||
SH='Makefile.SH cflags.SH config_h.SH makedependfile.SH makedepend.SH myconfig.SH runtests.SH pod/Makefile.SH' | ||
shextract=`SH_to_target $SH` | ||
|
||
## In the following dollars and backticks do not need the extra backslash. | ||
|
@@ -1367,7 +1367,7 @@ veryclean: _verycleaner _mopup _clobber | |
_mopup: | ||
rm -f *$(OBJ_EXT) *$(LIB_EXT) all perlmain.c $(mini_only_src) generate_uudmap$(EXE_EXT) $(generated_headers) | ||
-rmdir .depending | ||
-rm *.depends makedepend_file | ||
-rm *.depends | ||
-@test -f extra.pods && rm -f `cat extra.pods` | ||
-@test -f vms/README_vms.pod && rm -f vms/README_vms.pod | ||
-rm -f perl.exp ext.libs $(generated_pods) uni.data $(mini_only_objs) pod/roffitall | ||
|
@@ -1495,11 +1495,14 @@ cscopeflags = -Rb # Recursive, build-only. | |
cscope.out cscope: $(c) $(h) | ||
cscope $(cscopeflags) | ||
|
||
# Need to unset during recursion to go out of loop. | ||
# $(FIRSTMAKEFILE) is generated by the makedepend script. | ||
# The makedepend script uses the makedependfile script. | ||
|
||
# Need to unset MAKEDEPEND during recursion to go out of loop. | ||
# The README below ensures that the dependency list is never empty and | ||
# that when MAKEDEPEND is empty $(FIRSTMAKEFILE) doesn't need rebuilding. | ||
|
||
MAKEDEPEND = Makefile makedepend_file makedepend | ||
MAKEDEPEND = Makefile makedependfile makedepend | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would add a comment like
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have added the following comment to explain how $(FIRSTMAKEFILE) is generated and its relationship with makedepend and makedependfile. Hoping that is what you wanted...
|
||
|
||
$(FIRSTMAKEFILE): README $(MAKEDEPEND) | ||
$(MAKE) depend MAKEDEPEND= | ||
|
@@ -1517,11 +1520,11 @@ done | |
$spitshell >>$Makefile <<'!NO!SUBS!' | ||
|
||
.PHONY: depend | ||
depend: makedepend $(DTRACE_H) $(generated_headers) | ||
depend: makedependfile makedepend $(DTRACE_H) $(generated_headers) | ||
sh ./makedepend MAKE="$(MAKE)" cflags | ||
|
||
.c.c.depends: | ||
sh ./makedepend_file $< $@ cflags | ||
sh ./makedependfile $< $@ cflags | ||
|
||
.PHONY: test check test_prep test_prep_nodll test_prep_pre \ | ||
test_prep_reonly test_tty test-tty test_notty test-notty \ | ||
|
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.
The first few characters of the commit message are wrong
Uh oh!
There was an error while loading. Please reload this page.
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.
I made minor edits in the p.r. description for better English grammar. I realized it was a lot easier to just do them than to point them out.
This now looks good to me, but someone who is better at Makefiles should check
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.
What is wrong in the commit message? Do you mean instead something wrong in the p.r. description that you have fixed?