diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2014-12-05 07:45:41 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2014-12-05 07:45:41 -0800 |
commit | a4be9ff0a1e6e7d943d5a2b6f0736aa1f08d9ca2 (patch) | |
tree | a9e4930d09ffb9201242b789d33ee36d297060c5 /Makefile | |
parent | 5d2b6ed32c38078efed26fd31f30f0d3569bf3db (diff) | |
download | txr-a4be9ff0a1e6e7d943d5a2b6f0736aa1f08d9ca2.tar.gz txr-a4be9ff0a1e6e7d943d5a2b6f0736aa1f08d9ca2.tar.bz2 txr-a4be9ff0a1e6e7d943d5a2b6f0736aa1f08d9ca2.zip |
* Makefile (SRCS): Compute from top_srcdir, so we don't get a warning
from git, and "make enforce" works from out of three builds.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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 |