[mm-common] Only show commands actually executed by make
- From: Daniel Elstner <daniel src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [mm-common] Only show commands actually executed by make
- Date: Wed, 5 Aug 2009 14:59:36 +0000 (UTC)
commit 3c1db29e6108f085b29335a4f1bece94057e4205
Author: Daniel Elstner <danielk openismus com>
Date: Wed Aug 5 16:50:49 2009 +0200
Only show commands actually executed by make
* Makefile.am (tags/libstdc++.tag): Use $(if ...) construct to handle
the condition at the make level, instead of using shell conditionals.
This way, the make output only displays the command that was actually
executed.
(.DELETE_ON_ERROR): Enable delete-on-error mode for reliability.
* configure.ac (AM_INIT_AUTOMAKE): Add -Wno-portability to suppress
warnings about GNU make extensions being used.
Makefile.am | 9 ++++-----
configure.ac | 2 +-
2 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 23eb0d9..ecd0727 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -54,12 +54,11 @@ curl_flags = --compressed --connect-timeout 300 -g -L -m 3600 --retry 5
wget_flags = -T 300 -t 5
libstdcxx_tag_url = http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/libstdc++.tag
+.DELETE_ON_ERROR:
+
# Download the GNU libstdc++ Doxygen tag file from the GCC site
tags/libstdc++.tag:
- if test -n "$(CURL)"; then \
- $(CURL) $(curl_flags) -o '$@' '$(libstdcxx_tag_url)'; \
- elif test -n "$(WGET)"; then \
- $(WGET) $(wget_flags) -O '$@' '$(libstdcxx_tag_url)'; \
- fi
+ $(if $(CURL),$(CURL) $(curl_flags) -o '$@' '$(libstdcxx_tag_url)',$(if\
+ $(WGET),$(WGET) $(wget_flags) -O '$@' '$(libstdcxx_tag_url)',exit 1))
include $(top_srcdir)/build/dist-changelog.am
diff --git a/configure.ac b/configure.ac
index 42a2a1b..ad4fe77 100644
--- a/configure.ac
+++ b/configure.ac
@@ -19,7 +19,7 @@ AC_INIT([mm-common], [0.1], [gtkmm-list gnome org], [mm-common])
AC_PREREQ([2.59])
AC_CONFIG_SRCDIR([build/compile-binding.am])
-AM_INIT_AUTOMAKE([1.9 no-define nostdinc tar-ustar])
+AM_INIT_AUTOMAKE([1.9 -Wno-portability no-define nostdinc tar-ustar])
AM_MAINTAINER_MODE
AC_ARG_VAR([ACLOCAL_FLAGS], [aclocal flags, e.g. -I <macro dir>])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]