[3611] | 1 | # Copyright (C) 1990-2022 Free Software Foundation, Inc.
|
---|
[599] | 2 |
|
---|
[3611] | 3 | # This program is free software: you can redistribute it and/or modify
|
---|
| 4 | # it under the terms of the GNU General Public License as published by
|
---|
| 5 | # the Free Software Foundation, either version 3 of the License, or
|
---|
| 6 | # (at your option) any later version.
|
---|
[599] | 7 |
|
---|
[3611] | 8 | # This program is distributed in the hope that it will be useful,
|
---|
| 9 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 10 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
| 11 | # GNU General Public License for more details.
|
---|
| 12 |
|
---|
| 13 | # You should have received a copy of the GNU General Public License
|
---|
| 14 | # along with this program. If not, see <https://www.gnu.org/licenses/>.
|
---|
| 15 |
|
---|
[599] | 16 | PACKAGE = sed
|
---|
| 17 |
|
---|
[3611] | 18 | SUBDIRS = po . gnulib-tests
|
---|
[599] | 19 |
|
---|
[3611] | 20 |
|
---|
| 21 | # This applies to all parts: gnulib, sed, testsuites
|
---|
| 22 | AM_CPPFLAGS = -I$(top_srcdir) \
|
---|
| 23 | -I$(top_srcdir)/lib \
|
---|
| 24 | -I$(top_builddir)/lib \
|
---|
| 25 | -I$(top_builddir)/sed
|
---|
| 26 |
|
---|
| 27 | AM_CFLAGS =
|
---|
| 28 | BUILT_SOURCES =
|
---|
| 29 | CLEANFILES =
|
---|
| 30 | EXTRA_DIST =
|
---|
| 31 | MAINTAINERCLEANFILES =
|
---|
| 32 | MOSTLYCLEANDIRS =
|
---|
| 33 | MOSTLYCLEANFILES =
|
---|
| 34 | SUFFIXES =
|
---|
| 35 | bin_PROGRAMS =
|
---|
| 36 | noinst_LIBRARIES =
|
---|
| 37 | noinst_DATA =
|
---|
[599] | 38 | noinst_HEADERS = basicdefs.h
|
---|
[3611] | 39 | DISTCLEANFILES =
|
---|
[599] | 40 |
|
---|
[3611] | 41 | EXTRA_DIST += BUGS THANKS.in \
|
---|
| 42 | .version \
|
---|
| 43 | .mailmap ChangeLog-2014 po/ChangeLog-2014 \
|
---|
| 44 | bootstrap bootstrap.conf build-aux/help2man \
|
---|
| 45 | thanks-gen
|
---|
[599] | 46 |
|
---|
[3611] | 47 | BUILT_SOURCES += .version
|
---|
| 48 | .version:
|
---|
| 49 | $(AM_V_GEN)echo $(VERSION) > $@-t && mv $@-t $@
|
---|
[599] | 50 |
|
---|
[3611] | 51 | # Arrange so that .tarball-version appears only in the distribution
|
---|
| 52 | # tarball, and never in a checked-out repository.
|
---|
| 53 | dist-hook: gen-ChangeLog
|
---|
| 54 | $(AM_V_GEN)echo $(VERSION) > $(distdir)/.tarball-version
|
---|
[599] | 55 |
|
---|
[3611] | 56 | gen_start_date = 2014-09-06
|
---|
| 57 | .PHONY: gen-ChangeLog
|
---|
| 58 | gen-ChangeLog:
|
---|
| 59 | $(AM_V_GEN)if test -d .git; then \
|
---|
| 60 | log_fix="$(srcdir)/build-aux/git-log-fix"; \
|
---|
| 61 | test -e "$$log_fix" \
|
---|
| 62 | && amend_git_log="--amend=$$log_fix" \
|
---|
| 63 | || amend_git_log=; \
|
---|
| 64 | $(top_srcdir)/build-aux/gitlog-to-changelog \
|
---|
| 65 | $$amend_git_log --since=$(gen_start_date) > $(distdir)/cl-t && \
|
---|
| 66 | { rm -f $(distdir)/ChangeLog && \
|
---|
| 67 | mv $(distdir)/cl-t $(distdir)/ChangeLog; } \
|
---|
| 68 | fi
|
---|
| 69 |
|
---|
| 70 | # Sort in traditional ASCII order, regardless of the current locale;
|
---|
| 71 | # otherwise we may get into trouble with distinct strings that the
|
---|
| 72 | # current locale considers to be equal.
|
---|
| 73 | ASSORT = LC_ALL=C sort
|
---|
| 74 |
|
---|
| 75 | # Extract all lines up to the first one starting with "##".
|
---|
| 76 | prologue = perl -ne '/^\#\#/ and exit; print' $(srcdir)/THANKS.in
|
---|
| 77 |
|
---|
| 78 | THANKS: THANKS.in Makefile.am .mailmap thanks-gen .version
|
---|
| 79 | $(AM_V_GEN)rm -f $@-t $@; \
|
---|
| 80 | { \
|
---|
| 81 | $(prologue); echo; \
|
---|
| 82 | { perl -ne '/^$$/.../^$$/ and print' $(srcdir)/THANKS.in \
|
---|
| 83 | | grep -v '^$$' | perl -pe 's/ +/\0/'; \
|
---|
| 84 | git log --pretty=format:'%aN%x00%aE' \
|
---|
| 85 | | $(ASSORT) -u; \
|
---|
| 86 | } | $(srcdir)/thanks-gen \
|
---|
| 87 | | LC_ALL=en_US.UTF-8 sort -f; \
|
---|
| 88 | echo; \
|
---|
| 89 | printf ';; %s\n' 'Local Variables:' 'coding: utf-8' End:; \
|
---|
| 90 | } > $@-t && chmod a-w $@-t && mv $@-t $@
|
---|
| 91 |
|
---|
| 92 |
|
---|
| 93 | AM_DISTCHECK_CONFIGURE_FLAGS = XGETTEXT='$(SHELL) -c : dummy' $(EXTRA_DC_FLAGS)
|
---|
| 94 | EXTRA_DC_FLAGS =
|
---|
| 95 |
|
---|
[599] | 96 | full-distcheck:
|
---|
[3611] | 97 | $(MAKE) distcheck EXTRA_DC_FLAGS='--enable-regex-tests'
|
---|
| 98 | $(MAKE) distcheck EXTRA_DC_FLAGS='--enable-html'
|
---|
| 99 | $(MAKE) distcheck EXTRA_DC_FLAGS='--disable-i18n'
|
---|
| 100 | $(MAKE) distcheck EXTRA_DC_FLAGS='--disable-nls'
|
---|
| 101 | $(MAKE) distcheck EXTRA_DC_FLAGS='--without-included-gettext'
|
---|
| 102 | @case "$(host)" in \
|
---|
| 103 | *-linux*|*-gnu*) \
|
---|
| 104 | echo $(MAKE) distcheck \
|
---|
| 105 | EXTRA_DC_FLAGS=\'--without-included-regex\'; \
|
---|
| 106 | $(MAKE) distcheck EXTRA_DC_FLAGS='--without-included-regex' \
|
---|
| 107 | ;; \
|
---|
| 108 | *) \
|
---|
| 109 | echo Skipping check --without-included-regex \
|
---|
| 110 | ;; \
|
---|
| 111 | esac
|
---|
[599] | 112 |
|
---|
[3611] | 113 | include $(top_srcdir)/lib/local.mk
|
---|
| 114 | include $(top_srcdir)/sed/local.mk
|
---|
| 115 | include $(top_srcdir)/doc/local.mk
|
---|
| 116 | include $(top_srcdir)/testsuite/local.mk
|
---|
| 117 |
|
---|
| 118 | # Remove the generated sed.1 file, but only for a non-srcdir build.
|
---|
| 119 | # Without this, 'make distcheck's final comparison would fail.
|
---|
| 120 | # Also remove lib/.deps/{getfilecon,obstack}.Po,
|
---|
| 121 | # which are left behind by bleeding edge automake.
|
---|
| 122 | # Without this, 'make distcheck's final comparison would fail.
|
---|
| 123 | distclean-local:
|
---|
| 124 | test x$(srcdir) = x$(builddir) || rm -f $(dist_man_MANS)
|
---|
| 125 | rm -f lib/.deps/getfilecon.Po lib/.deps/obstack.Po
|
---|
| 126 |
|
---|
| 127 | # Shortcut targets to make it easier to run (very) expensive tests.
|
---|
| 128 | check-expensive:
|
---|
| 129 | $(MAKE) check RUN_EXPENSIVE_TESTS=yes
|
---|
| 130 | check-very-expensive:
|
---|
| 131 | $(MAKE) check-expensive RUN_VERY_EXPENSIVE_TESTS=yes
|
---|