summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 7d6f74d0..a931ffb7 100644
--- a/Makefile
+++ b/Makefile
@@ -44,8 +44,11 @@ OBJS += arith.o hash.o utf8.o filter.o eval.o rand.o combi.o sysif.o
OBJS-$(debug_support) += debug.o
OBJS-$(have_syslog) += syslog.o
OBJS-$(have_posix_sigs) += signal.o
-SRCS := $(filter-out lex.yy.c y.tab.c y.tab.h,\
- $(shell git ls-files "*.c" "*.h" "*.l" "*.y"))
+SRCS := $(addprefix $(top_srcdir)/,\
+ $(filter-out lex.yy.c y.tab.c y.tab.h,\
+ $(shell git --work-tree=$(top_srcdir) \
+ --git-dir=$(top_srcdir)/.git \
+ ls-files "*.c" "*.h" "*.l" "*.y")))
# MPI objects
MPI_OBJ_BASE=mpi.o mplogic.o