[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] | 25 | ACLOCAL_AMFLAGS = -I m4 |
---|
[720] | 26 | |
---|
[1337] | 27 | ## need to declare these variables here so they can be appended below |
---|
[1440] | 28 | BUILT_SOURCES = |
---|
| 29 | CLEANFILES = |
---|
| 30 | CONFIG_STATUS_DEPENDENCIES = |
---|
[1337] | 31 | DISTCLEANFILES = |
---|
[1617] | 32 | yat_am_dist_hooks = |
---|
[1440] | 33 | EXTRA_DIST = |
---|
[1525] | 34 | MAINTAINERCLEANFILES = |
---|
[909] | 35 | |
---|
[1525] | 36 | AM_CPPFLAGS = $(SVNDIGEST_CPPFLAGS) |
---|
| 37 | AM_CXXFLAGS = $(SVNDIGEST_CXXFLAGS) |
---|
| 38 | AM_LDFLAGS = $(SVNDIGEST_LDFLAGS) |
---|
| 39 | |
---|
| 40 | noinst_HEADERS = |
---|
| 41 | noinst_LIBRARIES = |
---|
| 42 | |
---|
| 43 | clean-local:; rm -rf test/testSubDir Fetchdir |
---|
| 44 | |
---|
| 45 | include bin/Makefile.am |
---|
| 46 | include lib/Makefile.am |
---|
| 47 | include man/Makefile.am |
---|
| 48 | include test/Makefile.am |
---|
| 49 | include yat/Makefile.am |
---|
| 50 | |
---|
[1618] | 51 | include yat_am_local.am |
---|
[909] | 52 | |
---|
[1617] | 53 | dist-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] | 63 | MAINTAINER_CHECK_LOCAL = check |
---|
[1452] | 64 | ## syntax-check called within maintainer-check |
---|
| 65 | MAINTAINER_CHECK_LOCAL += syntax-check |
---|
[1618] | 66 | |
---|
| 67 | # extra checks added early in release-tag-upload |
---|
[1470] | 68 | RELEASE_LOCAL = check-svn_revision check-readme check-openssl |
---|
[1003] | 69 | |
---|
[1470] | 70 | .PHONY: check-svn_revision check-openssl |
---|
[1003] | 71 | |
---|
[1392] | 72 | FORCE: |
---|
| 73 | |
---|
[1470] | 74 | check-openssl: |
---|
| 75 | @openssl version > /dev/null || exit 1 |
---|
| 76 | |
---|
[1003] | 77 | check-svn_revision: |
---|
| 78 | @$(SVNVERSION) | $(EGREP) '^[0-9]+$$' || \ |
---|
| 79 | { echo incorrect svn revision - expected single unmodified revision 1>&2; \ |
---|
[1182] | 80 | exit 1; } |
---|
| 81 | |
---|
[1308] | 82 | check-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] | 93 | RELEASE_HOOK = build_support/Portfile.diff |
---|
[1182] | 94 | |
---|
[1631] | 95 | macport_url = https://svn.macports.org/repository/macports/trunk/dports/devel/svndigest |
---|
[1392] | 96 | |
---|
[1632] | 97 | build_support/macport/.dirstamp: |
---|
| 98 | $(AM_V_at)$(SVN) co $(macport_url) build_support/macport |
---|
| 99 | $(AM_V_at): > $@ |
---|
[1392] | 100 | |
---|
[1632] | 101 | build_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 | |
---|
| 105 | build_support/Portfile.diff: build_support/Portfile \ |
---|
| 106 | build_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] | 111 | edit = $(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] | 121 | build_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 $@ |
---|