diff --git a/configure.ac b/configure.ac index 5ce04d31..2da602a5 100644 --- a/configure.ac +++ b/configure.ac @@ -309,7 +309,9 @@ AC_CONFIG_FILES([\ Makefile \ doc/Makefile \ src/Makefile \ - others/Makefile + others/Makefile \ + tools/Makefile \ + tools/rules-check/Makefile ]) AM_COND_IF([TEST_UTILITIES], @@ -321,8 +323,6 @@ AM_COND_IF([EXAMPLES], examples/simple_example_using_c/Makefile \ examples/multiprocess_c/Makefile \ examples/reading_logs_with_offset/Makefile \ - tools/Makefile \ - tools/rules-check/Makefile \ ])]) AM_COND_IF([AFL_FUZZER], diff --git a/tools/Makefile.am b/tools/Makefile.am new file mode 100644 index 00000000..4164deeb --- /dev/null +++ b/tools/Makefile.am @@ -0,0 +1,14 @@ + +ACLOCAL_AMFLAGS = -I build + + +SUBDIRS = \ + rules-check + +# make clean +CLEANFILES = + +# make maintainer-clean +MAINTAINERCLEANFILES = \ + Makefile.in + diff --git a/tools/rules-check/rules-check.cc b/tools/rules-check/rules-check.cc index fff38c9d..fac28923 100644 --- a/tools/rules-check/rules-check.cc +++ b/tools/rules-check/rules-check.cc @@ -46,7 +46,7 @@ int main(int argc, char **argv) { while (*args != NULL) { struct stat buffer; - std::string argFull; + std::string argFull(""); const char *arg = *args; std::string err; int r;