source: trunk/Makefile.am @ 2112

Last change on this file since 2112 was 2112, checked in by Peter, 14 years ago

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.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.4 KB
Line 
1## Process this file with automake to produce Makefile.in
2##
3
4# $Id: Makefile.am 2112 2009-11-15 16:59:00Z peter $
5#
6# Copyright (C) 2003 Daniel Dalevi, Jari Häkkinen
7# Copyright (C) 2005 Peter Johansson
8# Copyright (C) 2006 Jari Häkkinen
9# Copyright (C) 2007, 2008 Jari Häkkinen, Peter Johansson
10# Copyright (C) 2009 Peter Johansson
11#
12# This file is part of the yat library, http://dev.thep.lu.se/yat
13#
14# The yat library is free software; you can redistribute it and/or
15# modify it under the terms of the GNU General Public License as
16# published by the Free Software Foundation; either version 3 of the
17# License, or (at your option) any later version.
18#
19# The yat library is distributed in the hope that it will be useful,
20# but WITHOUT ANY WARRANTY; without even the implied warranty of
21# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22# General Public License for more details.
23#
24# You should have received a copy of the GNU General Public License
25# along with yat. If not, see <http://www.gnu.org/licenses/>.
26
27# -I arg should be the same as arg in AC_CONFIG_MACRO_DIR in configure.ac
28ACLOCAL_AMFLAGS = -I m4
29
30SUBDIRS = build_support m4 yat test doc
31
32.PHONY: doc doxygen_mk maintainer-check news-check svn-check svn-clean release
33doc: doxygen_mk
34  @(cd doc; $(MAKE) $(AM_MAKEFLAGS) $@)
35
36doxygen_mk:; @(cd yat; $(MAKE) $(AM_MAKEFLAGS) $@)
37
38# like the normal install target, but does not update header files
39# (and its time stamps) if the content did not change.
40install-modified:
41  $(MAKE) install $(AM_MAKEFLAGS) INSTALL_HEADER="$(install_sh_DATA) -C"
42
43# This is a workaround to avoid a broken make when .m4 files are
44# renamed or deleted. Something similar will be provided by Automake 1.11
45$(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
Note: See TracBrowser for help on using the repository browser.