Makefile: regenerate assembler listings when asked
'make var.s' fails to regenerate an assembler listing if var.c has not changed but a header it includes has: $ make var.s CC var.s $ touch cache.h $ make var.s $ The corresponding problem for 'make var.o' does not occur because the Makefile lists dependencies for each .o target explicitly; analogous dependency rules for the .s targets are not present. Rather than add some, it seems better to force 'make' to always regenerate assembler listings, since the assembler listing targets are only invoked when specifically requested on the make command line. Acked-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jonathan Nieder committed
Jan 6, 2010 at 02:04 UTC
31838b4dcd27961b13e46ffd126233b208a29530
1 file changed
+2
-2
Makefile
+2
-2
@@ -1633,7 +1633,7 @@ git.o git.spec \
1633
1634
%.o: %.c GIT-CFLAGS
1635
$(QUIET_CC)$(CC) -o $*.o -c $(ALL_CFLAGS) $<
1636
-%.s: %.c GIT-CFLAGS
1636
+%.s: %.c GIT-CFLAGS .FORCE-LISTING
1637
$(QUIET_CC)$(CC) -S $(ALL_CFLAGS) $<
1638
%.o: %.S GIT-CFLAGS
1639
$(QUIET_CC)$(CC) -o $*.o -c $(ALL_CFLAGS) $<
@@ -1978,7 +1978,7 @@ endif
1978
.PHONY: all install clean strip
1979
.PHONY: shell_compatibility_test please_set_SHELL_PATH_to_a_more_modern_shell
1980
.PHONY: .FORCE-GIT-VERSION-FILE TAGS tags cscope .FORCE-GIT-CFLAGS
1981
-.PHONY: .FORCE-GIT-BUILD-OPTIONS
1981
+.PHONY: .FORCE-GIT-BUILD-OPTIONS .FORCE-LISTING
1982
1983
### Check documentation
1984
#