Skip to content

Commit

Permalink
Merge pull request #2110 from dscho/avoid-find-in-makefile
Browse files Browse the repository at this point in the history
Accelerate startup time of `make`
  • Loading branch information
dscho committed Mar 7, 2019
2 parents 6b27cae + cb253bd commit 89cb7de
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Expand Up @@ -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 \
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 89cb7de

Please sign in to comment.