Makefile: list standalone program object files in PROGRAM_OBJS
commit1b22c99c14b30f0add6f108a5883f003a2d81e01
authorJonathan Nieder <jrnieder@gmail.com>
Tue, 26 Jan 2010 15:54:23 +0000 (26 09:54 -0600)
committerJonathan Nieder <jrnieder@gmail.com>
Wed, 27 Jan 2010 08:41:36 +0000 (27 02:41 -0600)
treea2326068bbf7e57aec897c78a8b764d321972a0e
parentdfea575017ddc2ae7c9e8dcb978f4557f07715d3
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 <jrnieder@gmail.com>
Makefile