Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
cdo
Commits
27b75e96
Commit
27b75e96
authored
Dec 02, 2010
by
Ralf Mueller
Browse files
Introduce maintainer mode (refs #632)
parent
c2c1bec5
Changes
7
Hide whitespace changes
Inline
Side-by-side
Makefile.in
View file @
27b75e96
...
...
@@ -166,6 +166,7 @@ LIBTOOL = @LIBTOOL@
LIPO
=
@LIPO@
LN_S
=
@LN_S@
LTLIBOBJS
=
@LTLIBOBJS@
MAINT
=
@MAINT@
MAKEINFO
=
@MAKEINFO@
MKDIR_P
=
@MKDIR_P@
NETCDF_INCLUDE
=
@NETCDF_INCLUDE@
...
...
@@ -266,7 +267,7 @@ all: all-recursive
.SUFFIXES
:
am--refresh
:
@
:
$(srcdir)/Makefile.in
:
$(srcdir)/Makefile.am $(am__configure_deps)
$(srcdir)/Makefile.in
:
@MAINTAINER_MODE_TRUE@
$(srcdir)/Makefile.am $(am__configure_deps)
@
for
dep
in
$?
;
do
\
case
'
$(am__configure_deps)
'
in
\
*
$$
dep
*
)
\
...
...
@@ -293,9 +294,9 @@ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
$(top_builddir)/config.status
:
$(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
$(SHELL)
./config.status
--recheck
$(top_srcdir)/configure
:
$(am__configure_deps)
$(top_srcdir)/configure
:
@MAINTAINER_MODE_TRUE@
$(am__configure_deps)
$(am__cd)
$(srcdir)
&&
$(AUTOCONF)
$(ACLOCAL_M4)
:
$(am__aclocal_m4_deps)
$(ACLOCAL_M4)
:
@MAINTAINER_MODE_TRUE@
$(am__aclocal_m4_deps)
$(am__cd)
$(srcdir)
&&
$(ACLOCAL)
$(ACLOCAL_AMFLAGS)
$(am__aclocal_m4_deps)
:
cdo.spec
:
$(top_builddir)/config.status $(srcdir)/cdo.spec.in
...
...
aclocal.m4
View file @
27b75e96
...
...
@@ -599,6 +599,46 @@ fi
rmdir .tst 2>/dev/null
AC_SUBST([am__leading_dot])])
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
# From Jim Meyering
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
# Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# serial 5
# AM_MAINTAINER_MODE([DEFAULT-MODE])
# ----------------------------------
# Control maintainer-specific portions of Makefiles.
# Default is to disable them, unless `enable' is passed literally.
# For symmetry, `disable' may be passed as well. Anyway, the user
# can override the default with the --enable/--disable switch.
AC_DEFUN([AM_MAINTAINER_MODE],
[m4_case(m4_default([$1], [disable]),
[enable], [m4_define([am_maintainer_other], [disable])],
[disable], [m4_define([am_maintainer_other], [enable])],
[m4_define([am_maintainer_other], [enable])
m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
dnl maintainer-mode's default is 'disable' unless 'enable' is passed
AC_ARG_ENABLE([maintainer-mode],
[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
(and sometimes confusing) to the casual installer],
[USE_MAINTAINER_MODE=$enableval],
[USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
AC_MSG_RESULT([$USE_MAINTAINER_MODE])
AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
MAINT=$MAINTAINER_MODE_TRUE
AC_SUBST([MAINT])dnl
]
)
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
# Check to see how 'make' treats includes. -*- Autoconf -*-
# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
...
...
cdo.spec
View file @
27b75e96
...
...
@@ -4,7 +4,7 @@
Name: cdo
#BuildRequires:
Version: 1.4.7rc
4
Version: 1.4.7rc
5
Release: 1
Summary: Climate Data Operators
License: GNU GENERAL PUBLIC LICENSE Version 2, June 1991
...
...
configure
View file @
27b75e96
...
...
@@ -685,6 +685,9 @@ LDFLAGS
CFLAGS
CC
LIBTOOL
MAINT
MAINTAINER_MODE_FALSE
MAINTAINER_MODE_TRUE
am__untar
am__tar
AMTAR
...
...
@@ -757,6 +760,7 @@ SHELL'
ac_subst_files=''
ac_user_opts='
enable_option_checking
enable_maintainer_mode
enable_shared
enable_static
with_pic
...
...
@@ -1413,6 +1417,8 @@ Optional Features:
--disable-option-checking ignore unrecognized --enable/--with options
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--enable-maintainer-mode enable make rules and dependencies not useful
(and sometimes confusing) to the casual installer
--enable-shared[=PKGS] build shared libraries [default=yes]
--enable-static[=PKGS] build static libraries [default=yes]
--enable-fast-install[=PKGS]
...
...
@@ -3024,6 +3030,29 @@ am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
ac_config_headers="$ac_config_headers src/config.h"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
# Check whether --enable-maintainer-mode was given.
if test "${enable_maintainer_mode+set}" = set; then :
enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
else
USE_MAINTAINER_MODE=no
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
$as_echo "$USE_MAINTAINER_MODE" >&6; }
if test $USE_MAINTAINER_MODE = yes; then
MAINTAINER_MODE_TRUE=
MAINTAINER_MODE_FALSE='#'
else
MAINTAINER_MODE_TRUE='#'
MAINTAINER_MODE_FALSE=
fi
MAINT=$MAINTAINER_MODE_TRUE
# Set up libtool.
{ $as_echo "$as_me:${as_lineno-$LINENO}: setting up libtool" >&5
$as_echo "$as_me: setting up libtool" >&6;}
...
...
@@ -18101,6 +18130,10 @@ else
am__EXEEXT_FALSE=
fi
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
as_fn_error $? "conditional \"AMDEP\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
...
...
configure.ac
View file @
27b75e96
...
...
@@ -11,6 +11,7 @@ AC_CANONICAL_BUILD
AM_INIT_AUTOMAKE
AM_CONFIG_HEADER(src/config.h)
AM_MAINTAINER_MODE([disable])
# Set up libtool.
AC_MSG_NOTICE([setting up libtool])
...
...
contrib/Makefile.in
View file @
27b75e96
...
...
@@ -109,6 +109,7 @@ LIBTOOL = @LIBTOOL@
LIPO
=
@LIPO@
LN_S
=
@LN_S@
LTLIBOBJS
=
@LTLIBOBJS@
MAINT
=
@MAINT@
MAKEINFO
=
@MAKEINFO@
MKDIR_P
=
@MKDIR_P@
NETCDF_INCLUDE
=
@NETCDF_INCLUDE@
...
...
@@ -200,7 +201,7 @@ CLEANFILES = `ls completions4cdo.*`
all
:
all-am
.SUFFIXES
:
$(srcdir)/Makefile.in
:
$(srcdir)/Makefile.am $(am__configure_deps)
$(srcdir)/Makefile.in
:
@MAINTAINER_MODE_TRUE@
$(srcdir)/Makefile.am $(am__configure_deps)
@
for
dep
in
$?
;
do
\
case
'
$(am__configure_deps)
'
in
\
*
$$
dep
*
)
\
...
...
@@ -225,9 +226,9 @@ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
$(top_builddir)/config.status
:
$(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
cd
$(top_builddir)
&&
$(MAKE)
$(AM_MAKEFLAGS)
am--refresh
$(top_srcdir)/configure
:
$(am__configure_deps)
$(top_srcdir)/configure
:
@MAINTAINER_MODE_TRUE@
$(am__configure_deps)
cd
$(top_builddir)
&&
$(MAKE)
$(AM_MAKEFLAGS)
am--refresh
$(ACLOCAL_M4)
:
$(am__aclocal_m4_deps)
$(ACLOCAL_M4)
:
@MAINTAINER_MODE_TRUE@
$(am__aclocal_m4_deps)
cd
$(top_builddir)
&&
$(MAKE)
$(AM_MAKEFLAGS)
am--refresh
$(am__aclocal_m4_deps)
:
...
...
src/Makefile.in
View file @
27b75e96
...
...
@@ -244,6 +244,7 @@ LIBTOOL = @LIBTOOL@
LIPO
=
@LIPO@
LN_S
=
@LN_S@
LTLIBOBJS
=
@LTLIBOBJS@
MAINT
=
@MAINT@
MAKEINFO
=
@MAKEINFO@
MKDIR_P
=
@MKDIR_P@
NETCDF_INCLUDE
=
@NETCDF_INCLUDE@
...
...
@@ -395,7 +396,7 @@ all: config.h
.SUFFIXES
:
.SUFFIXES
:
.c .lo .o .obj
$(srcdir)/Makefile.in
:
$(srcdir)/Makefile.am $(am__configure_deps)
$(srcdir)/Makefile.in
:
@MAINTAINER_MODE_TRUE@
$(srcdir)/Makefile.am $(am__configure_deps)
@
for
dep
in
$?
;
do
\
case
'
$(am__configure_deps)
'
in
\
*
$$
dep
*
)
\
...
...
@@ -420,9 +421,9 @@ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
$(top_builddir)/config.status
:
$(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
cd
$(top_builddir)
&&
$(MAKE)
$(AM_MAKEFLAGS)
am--refresh
$(top_srcdir)/configure
:
$(am__configure_deps)
$(top_srcdir)/configure
:
@MAINTAINER_MODE_TRUE@
$(am__configure_deps)
cd
$(top_builddir)
&&
$(MAKE)
$(AM_MAKEFLAGS)
am--refresh
$(ACLOCAL_M4)
:
$(am__aclocal_m4_deps)
$(ACLOCAL_M4)
:
@MAINTAINER_MODE_TRUE@
$(am__aclocal_m4_deps)
cd
$(top_builddir)
&&
$(MAKE)
$(AM_MAKEFLAGS)
am--refresh
$(am__aclocal_m4_deps)
:
...
...
@@ -435,7 +436,7 @@ config.h: stamp-h1
stamp-h1
:
$(srcdir)/config.h.in $(top_builddir)/config.status
@
rm
-f
stamp-h1
cd
$(top_builddir)
&&
$(SHELL)
./config.status src/config.h
$(srcdir)/config.h.in
:
$(am__configure_deps)
$(srcdir)/config.h.in
:
@MAINTAINER_MODE_TRUE@
$(am__configure_deps)
(
$(am__cd)
$(top_srcdir)
&&
$(AUTOHEADER)
)
rm
-f
stamp-h1
touch
$@
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment