Changeset 2112


Ignore:
Timestamp:
Nov 15, 2009, 5:59:00 PM (12 years ago)
Author:
Peter
Message:

Note, this will likely break the Makefile; you need to run autoreconf -m.

Moving maintainer rules to an m4 autoconf macro to make it more
reusable. The macro creates an automake fragment file, which is
included in the top Makefile.am. The macro also searches a tool to
calculate md5sum. We prefer gmd5sum over md5, i.e., on Darwin we
prefer the GNU version installed by port.

Location:
trunk
Files:
3 added
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile.am

    r2106 r2112  
    4141  $(MAKE) install $(AM_MAKEFLAGS) INSTALL_HEADER="$(install_sh_DATA) -C"
    4242
    43 if ENABLE_SVN_SUPPORT
    44 include build_support/svn_support.am
    45 else
    46 release:
    47   @echo "ERROR: target 'release' not activated."
    48   @echo "       You need to run configure with '--enable-svn-support'."
    49   @exit 1
    50 endif
    51 
    5243# This is a workaround to avoid a broken make when .m4 files are
    5344# renamed or deleted. Something similar will be provided by Automake 1.11
    5445$(am__aclocal_m4_deps):
     46
     47###############################################################
     48##
     49## Some targets useful for the maintainer
     50##
     51MAINTAINER_CHECK_LOCAL = maintainer-check-local
     52RELEASE_LOCAL = ltversion-check
     53
     54.PHONY: maintainer-check-local ltversion-check
     55
     56ltversion-check:
     57  @case `sed 200q $(srcdir)/m4/version.m4` in \
     58  *yat-$(VERSION)*$(YAT_LT_VERSION)*);; \
     59  *) \
     60    echo "version.m4: YAT_LT_VERSION not updated;" 1>&2;\
     61    echo "  expected to find 'yat-$(VERSION)  $(YAT_LT_VERSION)'" 1>&2;\
     62    exit 1;; \
     63  esac
     64
     65maintainer-check-local:
     66  mkdir _inst
     67  @mcl_install=`cd _inst && pwd` \
     68  && $(MAKE) $(AM_MAKEFLAGS) prefix=$$mcl_install \
     69  && $(MAKE) $(AM_MAKEFLAGS) prefix=$$mcl_install install \
     70  && cd test && $(MAKE) $(AM_MAKEFLAGS) prefix=$$mcl_install yat_check_yat_test
     71
     72include $(srcdir)/maintainer.am
  • trunk/configure.ac

    r2107 r2112  
    7474AS_IF([test "x$ECHO" = x], [ECHO=echo])
    7575AC_SUBST(ECHO)
    76 
    77 AC_CHECK_PROGS([MD5], [md5sum md5 md5deep], [no])
    7876
    7977AC_MSG_NOTICE(dnl
     
    399397AC_SUBST(AM_LDFLAGS)
    400398
     399YAT_SVN_RELEASE
    401400
    402401# Create output.
Note: See TracChangeset for help on using the changeset viewer.