source: trunk/Makefile.am

Last change on this file was 1632, checked in by Peter Johansson, 10 days ago

split make rule for Portfile.diff into multiple targets

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.0 KB
RevLine 
[2]1## Process this file with automake to produce Makefile.in
2##
3## $Id: Makefile.am 1632 2023-03-19 05:15:02Z peter $
4
[978]5# Copyright (C) 2005, 2006 Jari Häkkinen
6# Copyright (C) 2007, 2008 Jari Häkkinen, Peter Johansson
[1495]7# Copyright (C) 2009, 2010, 2011, 2012 Peter Johansson
[84]8#
[687]9# This file is part of svndigest, http://dev.thep.lu.se/svndigest
[84]10#
[149]11# svndigest is free software; you can redistribute it and/or modify it
[84]12# under the terms of the GNU General Public License as published by
[693]13# the Free Software Foundation; either version 3 of the License, or
[84]14# (at your option) any later version.
15#
[149]16# svndigest is distributed in the hope that it will be useful, but
[84]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
[693]22# along with svndigest. If not, see <http://www.gnu.org/licenses/>.
[84]23
[720]24# -I arg should be the same as arg in AC_CONFIG_MACRO_DIR in configure.ac
[821]25ACLOCAL_AMFLAGS = -I m4
[720]26
[1337]27## need to declare these variables here so they can be appended below
[1440]28BUILT_SOURCES =
29CLEANFILES =
30CONFIG_STATUS_DEPENDENCIES =
[1337]31DISTCLEANFILES =
[1617]32yat_am_dist_hooks =
[1440]33EXTRA_DIST =
[1525]34MAINTAINERCLEANFILES =
[909]35
[1525]36AM_CPPFLAGS = $(SVNDIGEST_CPPFLAGS)
37AM_CXXFLAGS = $(SVNDIGEST_CXXFLAGS)
38AM_LDFLAGS = $(SVNDIGEST_LDFLAGS)
39
40noinst_HEADERS =
41noinst_LIBRARIES =
42
43clean-local:; rm -rf test/testSubDir Fetchdir
44
45include bin/Makefile.am
46include lib/Makefile.am
47include man/Makefile.am
48include test/Makefile.am
49include yat/Makefile.am
50
[1618]51include yat_am_local.am
[909]52
[1617]53dist-hook: $(yat_am_dist_hooks)
[1613]54
[874]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
[1452]62## included in tarball, and thus some tests are skipped in distcheck.
[1063]63MAINTAINER_CHECK_LOCAL = check
[1452]64## syntax-check called within maintainer-check
65MAINTAINER_CHECK_LOCAL += syntax-check
[1618]66
67# extra checks added early in release-tag-upload
[1470]68RELEASE_LOCAL = check-svn_revision check-readme check-openssl
[1003]69
[1470]70.PHONY: check-svn_revision check-openssl
[1003]71
[1392]72FORCE:
73
[1470]74check-openssl:
75  @openssl version > /dev/null || exit 1
76
[1003]77check-svn_revision:
78  @$(SVNVERSION) | $(EGREP) '^[0-9]+$$' || \
79  { echo incorrect svn revision - expected single unmodified revision 1>&2; \
[1182]80    exit 1; }
81
[1308]82check-readme:
83  (ver_am=1.11\
84  && $(GREP) "AM_INIT_AUTOMAKE.*$$ver_am" $(srcdir)/configure.ac \
85  && $(GREP) "Automake $$ver_am" $(srcdir)/README.developer)>/dev/null || exit 1
86  (ver_ac=2.63\
87  && $(GREP) "AC_PREREQ.*$$ver_ac" $(srcdir)/configure.ac \
88  && $(GREP) "Autoconf $$ver_ac" $(srcdir)/README.developer)>/dev/null || exit 1
89
90
91
[1182]92# run in end of release target
[1392]93RELEASE_HOOK = build_support/Portfile.diff
[1182]94
[1631]95macport_url = https://svn.macports.org/repository/macports/trunk/dports/devel/svndigest
[1392]96
[1632]97build_support/macport/.dirstamp:
98  $(AM_V_at)$(SVN) co $(macport_url) build_support/macport
99  $(AM_V_at): > $@
[1392]100
[1632]101build_support/macport/Portfile: build_support/macport/.dirstamp FORCE
102  $(AM_V_GEN)$(SVN) revert -R build_support/macport \
103  && $(SVN) update build_support/macport
104
105build_support/Portfile.diff: build_support/Portfile \
106build_support/macport/Portfile
107  $(AM_V_GEN)cp build_support/Portfile build_support/macport/Portfile \
108  && $(SVN) diff build_support/macport/Portfile > $@ \
109  && $(SVN) revert build_support/macport/Portfile
110
[1182]111edit = $(SED) \
112  -e 's|@PACKAGE_URL[@]|$(PACKAGE_URL)|g' \
113  -e 's|@VERSION[@]|$(VERSION)|g'
114
[1620]115$(distdir).tar.gz.sha256: $(distdir).tar.gz
116  $(AM_V_GEN)openssl sha256 $(distdir).tar.gz > $@
117
118$(distdir).tar.gz.rmd160: $(distdir).tar.gz
119  $(AM_V_GEN)openssl rmd160 $(distdir).tar.gz > $@
120
[1632]121build_support/Portfile: Makefile build_support/Portfile.in $(distdir).tar.gz.sha256 $(distdir).tar.gz.rmd160
122  $(AM_V_GEN)rm -f $@ $@.t; \
123  sha256=`cut -f 2 -d ' ' $(distdir).tar.gz.sha256`;\
[1264]124  rmd160=`cut -f 2 -d ' ' $(distdir).tar.gz.rmd160`;\
[1470]125  $(edit) -e "s|@SHA256SUM[@]|$$sha256|g" \
126  -e "s|@RMD160SUM[@]|$$rmd160|g" \
[1632]127  '$(srcdir)/build_support/Portfile.in' > $@.t; \
128  chmod a-w $@.t; \
129  mv $@.t $@
Note: See TracBrowser for help on using the repository browser.