From 5d60444f40eb5635c6fdd0d2b1ec818b9cb9b821 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Mon, 15 May 2017 20:08:54 +0200 Subject: [PATCH] automake: Enable all warnings and fix a warning Fix this automake warning for java/Makefile.am: java/Makefile.am:67: warning: user target 'clean' defined here ... automake: ... overrides Automake target 'clean' defined here java/Makefile.am:67: consider using clean-local instead of clean Signed-off-by: Stefan Weil --- autogen.sh | 2 +- java/Makefile.am | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/autogen.sh b/autogen.sh index 7d35f48d39..6bbec85d32 100755 --- a/autogen.sh +++ b/autogen.sh @@ -104,7 +104,7 @@ autoheader -f || bail_out # they are copied from the system so they can be used in a distribution. echo "Running automake --add-missing --copy" -automake --add-missing -c -Wno-portability > /dev/null || bail_out +automake --add-missing --copy --warnings=all || bail_out # --- Step 5: Generate configure and include/miaconfig.h from: # . configure.ac diff --git a/java/Makefile.am b/java/Makefile.am index af3b1885c3..982bd81f51 100644 --- a/java/Makefile.am +++ b/java/Makefile.am @@ -64,7 +64,7 @@ uninstall: rm -f $(scrollview_path)/*.jar endif -clean : +clean-local: rm -f ScrollView.jar $(SCROLLVIEW_CLASSES) # all-am does nothing, to make the java part optional.