Skip to content
Permalink
Browse files

Merge pull request #2110 from dscho/avoid-find-in-makefile

Accelerate startup time of `make`
  • Loading branch information...
dscho committed Mar 7, 2019
2 parents 6b27cae + cb253bd commit 89cb7de2a1f13138848fe2a104a04b570f3f1e08
Showing with 3 additions and 2 deletions.
  1. +3 −2 Makefile
@@ -844,7 +844,8 @@ VCSSVN_LIB = vcs-svn/lib.a

GENERATED_H += command-list.h

LIB_H = $(shell $(FIND) . \
LIB_H := $(shell git ls-files '*.h' ':!t/' ':!Documentation/' 2>/dev/null || \
$(FIND) . \
-name .git -prune -o \
-name t -prune -o \
-name Documentation -prune -o \
@@ -2367,7 +2368,7 @@ else
# should _not_ be included here, since they are necessary even when
# building an object for the first time.

$(OBJECTS): $(LIB_H)
$(OBJECTS): $(LIB_H) $(GENERATED_H)
endif

exec-cmd.sp exec-cmd.s exec-cmd.o: GIT-PREFIX

0 comments on commit 89cb7de

Please sign in to comment.
You can’t perform that action at this time.