source: trunk/Makefile.am @ 1373

Last change on this file since 1373 was 1373, checked in by Peter Johansson, 10 years ago

merging patch release 0.9.2 into trunk

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.3 KB
Line 
1## Process this file with automake to produce Makefile.in
2##
3## $Id: Makefile.am 1373 2011-06-10 23:31:35Z peter $
4
5# Copyright (C) 2005, 2006 Jari Häkkinen
6# Copyright (C) 2007, 2008 Jari Häkkinen, Peter Johansson
7# Copyright (C) 2009, 2010, 2011 Peter Johansson
8#
9# This file is part of svndigest, http://dev.thep.lu.se/svndigest
10#
11# svndigest is free software; you can redistribute it and/or modify it
12# under the terms of the GNU General Public License as published by
13# the Free Software Foundation; either version 3 of the License, or
14# (at your option) any later version.
15#
16# svndigest is distributed in the hope that it will be useful, but
17# WITHOUT ANY WARRANTY; without even the implied warranty of
18# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19# General Public License for more details.
20#
21# You should have received a copy of the GNU General Public License
22# along with svndigest. If not, see <http://www.gnu.org/licenses/>.
23
24# -I arg should be the same as arg in AC_CONFIG_MACRO_DIR in configure.ac
25ACLOCAL_AMFLAGS = -I m4
26
27SUBDIRS = yat lib bin man test
28
29
30lazycheck recheck: all
31  cd test && $(MAKE) $(AM_MAKEFLAGS) $@
32
33clean-local:
34  rm -rf svndigest *~
35
36.PHONY: recheck
37
38## need to declare these variables here so they can be appended below
39BUILT_SOURCES =
40CLEANFILES =
41CONFIG_STATUS_DEPENDENCIES =
42DISTCLEANFILES =
43EXTRA_DIST =
44
45include $(top_srcdir)/svn_revision.am
46include $(top_srcdir)/svn_revision_header.am
47
48include $(top_srcdir)/svn_release_year.am
49
50##############################################################
51##
52## Some rules useful for maintainer
53##
54
55include $(srcdir)/maintainer.am
56
57# called within maintainer-check
58## We do wanna run all tests here since test repository is not
59## included in tarball, and thus some tests are skiped in distcheck.
60MAINTAINER_CHECK_LOCAL = check
61# extra check in release rule
62RELEASE_LOCAL = check-svn_revision check-readme
63
64.PHONY: check-svn_revision
65
66check-svn_revision:
67  @$(SVNVERSION) | $(EGREP) '^[0-9]+$$' || \
68  { echo incorrect svn revision - expected single unmodified revision 1>&2; \
69    exit 1; }
70
71check-readme:
72  (ver_am=1.11\
73  && $(GREP) "AM_INIT_AUTOMAKE.*$$ver_am" $(srcdir)/configure.ac \
74  && $(GREP) "Automake $$ver_am" $(srcdir)/README.developer)>/dev/null || exit 1
75  (ver_ac=2.63\
76  && $(GREP) "AC_PREREQ.*$$ver_ac" $(srcdir)/configure.ac \
77  && $(GREP) "Autoconf $$ver_ac" $(srcdir)/README.developer)>/dev/null || exit 1
78
79
80
81# run in end of release target
82RELEASE_HOOK = build_support/Portfile.v$(VERSION)
83
84edit = $(SED) \
85  -e 's|@PACKAGE_URL[@]|$(PACKAGE_URL)|g' \
86  -e 's|@VERSION[@]|$(VERSION)|g'
87
88build_support/Portfile.v$(VERSION): Makefile build_support/Portfile.in
89  @rm -f $@ $@.t
90  @openssl version > /dev/null || exit 1
91  @openssl sha1 $(distdir).tar.gz > $(distdir).tar.gz.sha1
92  @openssl rmd160 $(distdir).tar.gz > $(distdir).tar.gz.rmd160
93  @sha1=`cut -f 2 -d ' ' $(distdir).tar.gz.sha1`;\
94  rmd160=`cut -f 2 -d ' ' $(distdir).tar.gz.rmd160`;\
95  $(edit) -e "s|@SHA1SUM[@]|$$sha1|g" -e "s|@RMD160SUM[@]|$$rmd160|g" \
96  '$(srcdir)/build_support/Portfile.in' > $@.t
97  @chmod a-w $@.t
98  @mv $@.t $@
99  @echo "creating $@"
100
101# create a tag from current stable branch; depends on check-version to
102# ensure that version is macro.minor.micro (no pre suffix), that wc is
103# pristine and updated.
104svn-tag: check-version check-svn-diff
105  svn copy \
106  ^/branches/$(SVNDIGEST_MAJOR_VERSION).$(SVNDIGEST_MINOR_VERSION)-stable\
107  ^/tags/$(VERSION) -m "tagging version $(VERSION)"
Note: See TracBrowser for help on using the repository browser.