From a8bb798ce02465e2f17127da23a3c25076a06224 Mon Sep 17 00:00:00 2001 From: Tom Davis Date: Wed, 20 Jul 2016 17:31:52 -0400 Subject: [PATCH] Call libpostal_data in source path, not build path This fix updates Makefile to find the actual libpostal_data file when `configure` is called from another directory, which it uses as the build directory. --- src/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile.am b/src/Makefile.am index 6268c87b..7d5c0835 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -60,7 +60,7 @@ language_classifier_test_CFLAGS = $(CFLAGS_O3) pkginclude_HEADERS = libpostal.h all-local: - ./libpostal_data download all $(datadir)/libpostal + ${srcdir}/libpostal_data download all $(datadir)/libpostal lexer: scanner.re re2c -F -s -b -8 -o scanner.c scanner.re