source: trunk/Makefile.am

Last change on this file was 1673, checked in by Peter Johansson, 4 weeks ago

closes #541. Require installed libyat

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.6 KB
Line 
1## Process this file with automake to produce Makefile.in
2##
3## $Id: Makefile.am 1673 2023-08-26 15:36:10Z peter $
4
5# Copyright (C) 2005, 2006 Jari Häkkinen
6# Copyright (C) 2007 Peter Johansson
7# Copyright (C) 2008 Jari Häkkinen, Peter Johansson
8# Copyright (C) 2009, 2010, 2011, 2012, 2023 Peter Johansson
9#
10# This file is part of svndigest, http://dev.thep.lu.se/svndigest
11#
12# svndigest is free software; you can redistribute it and/or modify it
13# under the terms of the GNU General Public License as published by
14# the Free Software Foundation; either version 3 of the License, or
15# (at your option) any later version.
16#
17# svndigest is distributed in the hope that it will be useful, but
18# WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
20# General Public License for more details.
21#
22# You should have received a copy of the GNU General Public License
23# along with svndigest. If not, see <http://www.gnu.org/licenses/>.
24
25# -I arg should be the same as arg in AC_CONFIG_MACRO_DIR in configure.ac
26ACLOCAL_AMFLAGS = -I m4
27
28## need to declare these variables here so they can be appended below
29BUILT_SOURCES =
30CLEANFILES =
31CONFIG_STATUS_DEPENDENCIES =
32DISTCLEANFILES =
33yat_am_dist_hooks =
34EXTRA_DIST =
35MAINTAINERCLEANFILES =
36
37AM_CPPFLAGS = $(SVNDIGEST_CPPFLAGS)
38AM_CXXFLAGS = $(SVNDIGEST_CXXFLAGS)
39AM_LDFLAGS = $(SVNDIGEST_LDFLAGS)
40
41noinst_HEADERS =
42noinst_LIBRARIES =
43
44clean-local:; rm -rf test/testSubDir Fetchdir
45
46include bin/Makefile.am
47include lib/Makefile.am
48include man/Makefile.am
49include test/Makefile.am
50
51include yat_am_local.am
52
53dist-hook: $(yat_am_dist_hooks)
54
55##############################################################
56##
57## Some rules useful for maintainer
58##
59
60# called within maintainer-check
61## We do wanna run all tests here since test repository is not
62## included in tarball, and thus some tests are skipped in distcheck.
63MAINTAINER_CHECK_LOCAL = check
64## syntax-check called within maintainer-check
65MAINTAINER_CHECK_LOCAL += syntax-check
66
67# extra checks added early in release-tag-upload
68RELEASE_LOCAL = check-svn_revision check-readme check-openssl check-git
69
70.PHONY: check-svn_revision check-openssl
71
72FORCE:
73
74check-git:
75  @$(GIT) --version > /dev/null || exit 1
76
77check-openssl:
78  $(AM_V_at)openssl version > /dev/null || exit 1
79  $(AM_V_at)openssl sha256 Makefile > check-openssl.tmp || exit 1
80  $(AM_V_at)openssl rmd160 Makefile >> check-openssl.tmp || exit 1
81  $(AM_V_at)rm -f check-openssl.tmp
82
83check-svn_revision:
84  @$(SVNVERSION) | $(EGREP) '^[0-9]+$$' || \
85  { echo incorrect svn revision - expected single unmodified revision 1>&2; \
86    exit 1; }
87
88check-readme:
89  (ver_am=1.11\
90  && $(GREP) "AM_INIT_AUTOMAKE.*$$ver_am" $(srcdir)/configure.ac \
91  && $(GREP) "Automake $$ver_am" $(srcdir)/README.developer)>/dev/null || exit 1
92  (ver_ac=2.63\
93  && $(GREP) "AC_PREREQ.*$$ver_ac" $(srcdir)/configure.ac \
94  && $(GREP) "Autoconf $$ver_ac" $(srcdir)/README.developer)>/dev/null || exit 1
95
96
97
98# run in end of release target
99RELEASE_HOOK = build_support/Portfile.diff
100
101macports_url = \
102https://github.com/macports/macports-ports.git
103
104build_support/macports-git/.dirstamp:
105  $(AM_V_at)$(GIT) clone $(macports_url) build_support/macports-git
106  $(AM_V_at): > $@
107
108build_support/macports-git/devel/svndigest/gitstamp: FORCE \
109build_support/macports-git/.dirstamp
110  $(AM_V_GEN)cd build_support/macports-git \
111  && $(GIT) fetch . \
112  && : > devel/svndigest/gitstamp
113
114build_support/macports-git/devel/svndigest/Portfile: build_support/Portfile
115  $(AM_V_GEN)cp build_support/Portfile $@
116
117build_support/Portfile.diff: \
118build_support/macports-git/devel/svndigest/gitstamp \
119build_support/macports-git/devel/svndigest/Portfile
120  $(AM_V_GEN)cd build_support/macports-git/devel/svndigest \
121  && $(GIT) diff > $(abs_builddir)/$@
122
123edit = $(SED) \
124  -e 's|@PACKAGE_URL[@]|$(PACKAGE_URL)|g' \
125  -e 's|@SVNDIGEST_PATCH_VERSION[@]|$(SVNDIGEST_PATCH_VERSION)|g' \
126  -e 's|@VERSION[@]|$(VERSION)|g'
127
128$(distdir).tar.gz.sha256: $(distdir).tar.gz
129  $(AM_V_GEN)openssl sha256 $(distdir).tar.gz > $@
130
131$(distdir).tar.gz.rmd160: $(distdir).tar.gz
132  $(AM_V_GEN)openssl rmd160 $(distdir).tar.gz > $@
133
134$(distdir).tar.gz.size: $(distdir).tar.gz
135  $(AM_V_GEN)du -b $(distdir).tar.gz > $@
136
137build_support/Portfile: Makefile build_support/Portfile.in \
138$(distdir).tar.gz.sha256 $(distdir).tar.gz.rmd160 $(distdir).tar.gz.size
139  $(AM_V_GEN)rm -f $@ $@.t; \
140  sha256=`cut -f 2 -d ' ' $(distdir).tar.gz.sha256`;\
141  rmd160=`cut -f 2 -d ' ' $(distdir).tar.gz.rmd160`;\
142  size=`cut -f 1 $(distdir).tar.gz.size`;\
143  $(edit) -e "s|@SHA256SUM[@]|$$sha256|g" \
144  -e "s|@RMD160SUM[@]|$$rmd160|g" \
145  -e "s|@SIZE[@]|$$size|g" \
146  '$(srcdir)/build_support/Portfile.in' > $@.t; \
147  chmod a-w $@.t; \
148  mv $@.t $@
Note: See TracBrowser for help on using the repository browser.