Merge branch 'jc/make-dedup-ls-files-output'
[gitweb.git] / Makefile
index af247878c583a5c46e5a8229a37288dfe9f328c8..6d433f87039275c8e04831dfae55dbdc18a44b20 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -817,12 +817,12 @@ VCSSVN_LIB = vcs-svn/lib.a
 
 GENERATED_H += command-list.h
 
-LIB_H := $(shell git ls-files '*.h' ':!t/' ':!Documentation/' 2>/dev/null || \
+LIB_H := $(sort $(shell git ls-files '*.h' ':!t/' ':!Documentation/' 2>/dev/null || \
        $(FIND) . \
        -name .git -prune -o \
        -name t -prune -o \
        -name Documentation -prune -o \
-       -name '*.h' -print)
+       -name '*.h' -print))
 
 LIB_OBJS += abspath.o
 LIB_OBJS += advice.o