diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2021-09-22 22:17:06 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-09-22 13:34:34 -0700 |
commit | f0a74bcb0352eab0ce7d474eea1754533e53bb5b (patch) | |
tree | 20f855054928dedb6a9f8c7444a3bef1f1e47c28 | |
parent | Git 2.33 (diff) | |
download | tgif-f0a74bcb0352eab0ce7d474eea1754533e53bb5b.tar.xz |
Makefile: clean .depend dirs under COMPUTE_HEADER_DEPENDENCIES != yes
Fix a logic error in dfea575017d (Makefile: lazily compute header
dependencies, 2010-01-26) where we'd make whether we cleaned the
.depend dirs contingent on the currently configured
COMPUTE_HEADER_DEPENDENCIES value. Before this running e.g.:
make COMPUTE_HEADER_DEPENDENCIES=yes grep.o
make COMPUTE_HEADER_DEPENDENCIES=no clean
Would leave behind the .depend directory, now it'll be removed.
Normally we'd need to use another variable, but in this case there's
no other uses of $(dep_dirs), as opposed to $(dep_args) which is used
as an argument to $(CC). So just deleting this line makes everything
work correctly.
See http://lore.kernel.org/git/xmqqmto48ufz.fsf@gitster.g for a report
about this issue.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r-- | Makefile | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -2477,7 +2477,6 @@ dep_args = -MF $(dep_file) -MQ $@ -MMD -MP endif ifneq ($(COMPUTE_HEADER_DEPENDENCIES),yes) -dep_dirs = missing_dep_dirs = dep_args = endif |