On Fri, Apr 12, 2019 at 8:00 AM Johannes Schindelin via GitGitGadget <gitgitgadget@xxxxxxxxx> wrote: > When building with certain build options, some commands are excluded > from the build. For example, `git-credential-cache` is skipped when > building with `NO_UNIX_SOCKETS`. > > Let's not build or package documentation for those excluded commands. > [...] > Signed-off-by: Johannes Schindelin <johannes.schindelin@xxxxxx> > --- > diff --git a/Makefile b/Makefile > @@ -2455,22 +2455,25 @@ $(VCSSVN_LIB): $(VCSSVN_OBJS) > +Documentation/GIT-EXCLUDED-PROGRAMS: Makefile config.mak.uname > + $(QUIET_GEN)echo "EXCLUDED_PROGRAMS := $(EXCLUDED_PROGRAMS)" >$@ Should this rule also have a dependency upon "config.mak.autogen"? Perhaps like this: Documentation/GIT-EXCLUDED-PROGRAMS: Makefile $(wildcard config.mak*)