Skip to content

Makefile: fix generation of assembler listings

Jonathan Nieder git 1 version Applied

Status from this message: Thanks, applied.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest5 patches 3 repliesApplied

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/5Makefile: regenerate assembler listings when askedMakefile+2 -20 replies
2/5Makefile: use target-specific variable to pass flags to ccMakefile+18 -231 reply
3/5Makefile: learn to generate listings for targets requiring special flagsMakefile+7 -70 replies
4/5Makefile: consolidate .FORCE-* targetsDocumentation/Makefile Makefile+8 -110 replies
5/5git-gui/Makefile: consolidate .FORCE-* targetsMakefile+3 -41 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/5] Makefile: fix generation of assembler listings
Quoted 3 lines · Jonathan Nieder

This adds yet another phony .FORCE-foo target. Wouldn’t it be simpler to use a single target called .FORCE, or is there something I am missing that that would break?

I didn’t hear any screams when I suggested this about a month ago, so let’s try it out.

Patch 1 fixes a problem I noticed when tweaking the Makefile to automatically generate dependencies for the %.o targets. The problem is that the dependencies for the corresponding %.s (code listing) targets are not included in the Makefile at all, automatically or not. Thus the command "make var.s var.o && touch cache.h && make var.s var.o" produces the output

CC var.s
CC var.o
CC var.o

not regenerating var.s to reflect potential changes in cache.h.

"make git.s" previously did not work at all; patches 2-3 fix that.

Jonathan Nieder (5):
Makefile: regenerate assembler listings when asked
Makefile: use target-specific variable to pass flags to cc
Makefile: learn to generate listings for targets requiring special
flags
Makefile: consolidate .FORCE-* targets git-gui/Makefile: consolidate .FORCE-* targets

 Documentation/Makefile |    4 +-
 Makefile               |   56 ++++++++++++++++++++---------------------------
 git-gui/Makefile       |    7 ++---
 3 files changed, 29 insertions(+), 38 deletions(-)