source: trunk/Makefile.am @ 2230

Last change on this file since 2230 was 2230, checked in by Peter, 12 years ago

refs #475. enable 'make recheck' from topdir too

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.5 KB
Line 
1## Process this file with automake to produce Makefile.in
2##
3
4# $Id: Makefile.am 2230 2010-03-26 01:34:51Z 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
38recheck: all
39  @(cd test && $(MAKE) $(AM_MAKEFLAGS) $@)
40
41
42# like the normal install target, but does not update header files
43# (and its time stamps) if the content did not change.
44install-modified:
45  $(MAKE) install $(AM_MAKEFLAGS) INSTALL_HEADER="$(install_sh_DATA) -C"
46
47# This is a workaround to avoid a broken make when .m4 files are
48# renamed or deleted. Something similar will be provided by Automake 1.11
49$(am__aclocal_m4_deps):
50
51###############################################################
52##
53## Some targets useful for the maintainer
54##
55MAINTAINER_CHECK_LOCAL = maintainer-check-local
56RELEASE_LOCAL = ltversion-check
57
58.PHONY: maintainer-check-local ltversion-check
59
60ltversion-check:
61  @case `sed 200q $(srcdir)/m4/version.m4` in \
62  *yat-$(VERSION)*$(YAT_LT_VERSION)*);; \
63  *) \
64    echo "version.m4: YAT_LT_VERSION not updated;" 1>&2;\
65    echo "  expected to find 'yat-$(VERSION)  $(YAT_LT_VERSION)'" 1>&2;\
66    exit 1;; \
67  esac
68
69maintainer-check-local:
70  mkdir _inst
71  @mcl_install=`cd _inst && pwd` \
72  && $(MAKE) $(AM_MAKEFLAGS) prefix=$$mcl_install \
73  && $(MAKE) $(AM_MAKEFLAGS) prefix=$$mcl_install install \
74  && cd test && $(MAKE) $(AM_MAKEFLAGS) prefix=$$mcl_install yat_check_yat_test
75
76include $(srcdir)/am/maintainer.am
Note: See TracBrowser for help on using the repository browser.