From 00f6873a159806cf08a3f51d90776e2840ede946 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Wed, 19 Sep 2018 17:31:26 +0200 Subject: autoconf: fix 'make check' on out-of-tree builds --- data/Makefile.am | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'data') diff --git a/data/Makefile.am b/data/Makefile.am index f85a5ddb..c77efc8b 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -45,3 +45,11 @@ install-data-local: process-nad2bin $(INSTALL_DATA) $$gridfile $(DESTDIR)$(pkgdatadir)/`basename $$gridfile`; \ fi; \ done + +# For out-of-tree builds, link all file of the source data dir to the generated data +check-local: process-nad2bin + @if [ ! -f GL27 ]; then \ + for x in $(DATAPATH)/*; do \ + ln -sf $$x .; \ + done \ + fi -- cgit v1.2.3