summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2007-03-01 11:06:58 +0100
committerJim Meyering <jim@meyering.net>2007-03-01 11:06:58 +0100
commit262963212bc15e89b38eabc27c12572b5025ba70 (patch)
tree07955e4d721a64aba8ff57fc790de9646dcc097e
parentea42025c70bf2b63f5fb688d441d8bee7c720265 (diff)
downloadcoreutils-262963212bc15e89b38eabc27c12572b5025ba70.tar.xz
* Makefile.maint (warn_cflags): Hoist, adding "-Dlint -O".
(my-distcheck): Use the new variable, instead of too-long literal.
-rw-r--r--ChangeLog3
-rw-r--r--Makefile.maint4
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 2b01c56f8..b32fbff3b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2007-03-01 Jim Meyering <jim@meyering.net>
+ * Makefile.maint (warn_cflags): Hoist, adding "-Dlint -O".
+ (my-distcheck): Use the new variable, instead of too-long literal.
+
Make "make syntax-check" rules less coreutils-specific.
* Makefile.maint (sc_cast_of_x_alloc_return_value): Use CVS_LIST_EXCEPT.
(sc_cast_of_alloca_return_value): Likewise.
diff --git a/Makefile.maint b/Makefile.maint
index fece10c6b..839173511 100644
--- a/Makefile.maint
+++ b/Makefile.maint
@@ -513,6 +513,8 @@ null_AM_MAKEFLAGS = \
AUTOHEADER=false \
MAKEINFO=false
+warn_cflags = -Dlint -O -Werror -Wall -Wformat -Wshadow -Wpointer-arith
+
# Detect format-string/arg-list mismatches that would normally be obscured
# by the use of _(). The --disable-nls effectively defines away that macro,
# and building with CFLAGS='-Wformat -Werror' causes any format warning to be
@@ -528,7 +530,7 @@ my-distcheck: $(local-check) $(release_archive_dir)/$(prev-tgz)
GZIP=$(GZIP_ENV) $(AMTAR) -C $(t) -zxf $(distdir).tar.gz
cd $(t)/$(distdir) \
&& ./configure --disable-nls \
- && $(MAKE) CFLAGS='-Werror -Wall -Wformat -Wshadow -Wpointer-arith' \
+ && $(MAKE) CFLAGS='$(warn_cflags)' \
AM_MAKEFLAGS='$(null_AM_MAKEFLAGS)' \
&& $(MAKE) dvi \
&& $(MAKE) check \