]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
autotools: use builddir instead of srcdir
authorEric Leblond <eric@regit.org>
Tue, 3 Sep 2013 11:27:48 +0000 (13:27 +0200)
committerEric Leblond <eric@regit.org>
Tue, 3 Sep 2013 11:27:48 +0000 (13:27 +0200)
srcdir is supposed to be read-only when running distcheck so it is better to
create the log directory in builddir.

src/Makefile.am

index 29e16d9356a83b7b96af55b2ca8a35fd42b8b8bb..7ff6b1b343428e3cbc3b2a4dc3bccd062e489bcb 100644 (file)
@@ -411,9 +411,9 @@ AM_CFLAGS = -DLOCAL_STATE_DIR=\"$(localstatedir)\"
 
 if BUILD_UNITTESTS
 check-am:
-       -mkdir $(top_srcdir)/qa/log/
-       $(top_builddir)/src/suricata -u -l $(top_srcdir)/qa/log/
-       -rm -rf $(top_srcdir)/qa/log
+       -mkdir $(top_builddir)/qa/log/
+       $(top_builddir)/src/suricata -u -l $(top_builddir)/qa/log/
+       -rm -rf $(top_builddir)/qa/log
 endif
 
 distclean-local: