From: Jonathan Nieder Date: Tue, 26 Jan 2010 15:54:23 +0000 (-0600) Subject: Makefile: list standalone program object files in PROGRAM_OBJS X-Git-Tag: v1.7.1-rc0~118^2~4 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/1b22c99c14b30f0add6f108a5883f003a2d81e01?hp=1b22c99c14b30f0add6f108a5883f003a2d81e01 Makefile: list standalone program object files in PROGRAM_OBJS Because of new commands like git-remote-http, the OBJECTS list contains fictitious objects such as remote-http.o. Thus any out-of-tree rules that require all $(OBJECTS) to be buildable are broken. Add a list of real program objects to avoid this problem. To avoid duplication of effort, calculate the command list in the PROGRAMS variable using the expansion of PROGRAM_OBJS. This calculation occurs at the time $(PROGRAMS) is expanded, so later additions to PROGRAM_OBJS will be reflected in it, provided they occur before the build rules begin on line 1489. Signed-off-by: Jonathan Nieder ---