[build] allowing --disable-data-download option to configure. N.B. this is mostly for people building Docker images. The data files are NOT optional.

This commit is contained in:
Al
2016-12-22 12:24:40 -05:00
parent 09b4e2ba2f
commit 8fe7958969
2 changed files with 12 additions and 0 deletions

View File

@@ -64,8 +64,10 @@ language_classifier_test_CFLAGS = $(CFLAGS_O3)
pkginclude_HEADERS = libpostal.h
if DOWNLOAD_DATA
all-local:
${srcdir}/libpostal_data download all $(datadir)/libpostal
endif
lexer: scanner.re
re2c -F -s -b -8 -o scanner.c scanner.re