* .gitignore: Ignore '.dirstamp' files * bootstrap.conf: Add 'non-recursive-gnulib-prefix-hack' gnulib module. Add missing 'stdalign' module. (bootstrap_post_import_hook): Use module to adjust gnulib.mk file. * configure.ac: Add 'subdir-objects' automake option, don't generate makefiles in subdirectories. Adjust path of XFAIL tests. * Makefile.am: Include 'local.mk' files, adjust for non-recursive make. * doc/Makefile.am: Rename to ... * doc/local.mk: Adjust paths. Rename SED to SEDBIN variable, to avoid overriding the default system-wide SED value which is automatically set by autotools. * lib/Makefile.am: Rename to ... * lib/local.mk: Adjust paths. * lib/.gitignore: Ignore 'stdalign.h' from gnulib module. * sed/Makefile.am: Rename to ... * sed/local.mk: Adjust paths. * testsuite/Makefile.am: Rename to ... * testsuite/local.mk: Adjust paths. * testsuite/init.cfg: Move to ... * init.cfg: ... here. Moved to avoid changing the path in init.sh, and to keep the same directory structure as coreutils. (require_en_utf8_locale_): Adjust path for get-mb-cur-max executable. (require_ja_shiftjis_locale_,require_valid_ja_shiftjis_locale_): Adjust path for test-mbrtowc executable. * m4/.gitignore: Add gnulib's non-recusive-make module. * testsuite/runtest: Adjust paths of Makefile.tests and dir variables, Skip utility program 'get-mb-cur-max' which is not a standalone test. * testsuite/Makefile.tests: Adjust path of sed exeutable. * testsuite/eval.sed, testsuite/eval.good: Adjust path of sed executable. * testsuite/cmd-R.sh, testsuite/cmd-l.sh, testsuite/colon-with-no-label.sh, testsuite/comment-n.sh, testsuite/compile-errors.sh, testsuite/compile-tests.sh, testsuite/convert-number.sh, testsuite/execute-tests.sh, testsuite/follow-symlinks-stdin.sh, testsuite/follow-symlinks.sh, testsuite/help-version.sh, testsuite/in-place-hyphen.sh, testsuite/in-place-suffix-backup.sh, testsuite/invalid-mb-seq-UMR.sh, testsuite/mb-bad-delim.sh, testsuite/mb-charclass-non-utf8.sh, testsuite/mb-match-slash.sh, testsuite/mb-y-translate.sh, testsuite/normalize-text.sh, testsuite/nulldata.sh, testsuite/panic-tests.sh, testsuite/posix-char-class.sh, testsuite/posix-mode-N.sh, testsuite/posix-mode-addr.sh, testsuite/posix-mode-bad-ref.sh, testsuite/posix-mode-s.sh, testsuite/range-overlap.sh, testsuite/recursive-escape-c.sh, testsuite/regex-errors.sh, testsuite/stdin-prog.sh, testsuite/subst-mb-incomplete.sh, testsuite/subst-options.sh, testsuite/subst-replacement.sh, testsuite/temp-file-cleanup.sh, testsuite/unbuffered.sh: Adjust paths of init.sh, sed executable.
49 lines
2.0 KiB
Makefile
49 lines
2.0 KiB
Makefile
# Copyright (C) 2016 Free Software Foundation, Inc.
|
|
|
|
# This program is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
# (at your option) any later version.
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
info_TEXINFOS = doc/sed.texi
|
|
sed_TEXINFOS = doc/config.texi doc/version.texi
|
|
dist_man_MANS = doc/sed.1
|
|
dist_noinst_DATA = doc/config.texi doc/sed.x doc/sed-in.texi doc/s-texi
|
|
dist_noinst_SCRIPTS = doc/groupify.sed
|
|
HELP2MAN = $(top_srcdir)/build-aux/help2man
|
|
SEDBIN = $(top_builddir)/sed/sed
|
|
|
|
AM_MAKEINFOHTMLFLAGS = --no-split
|
|
|
|
# To produce better quality output, in the example sed
|
|
# scripts we group comments with lines following them;
|
|
# since mantaining the "@group...@end group" manually
|
|
# is a burden, we do this automatically
|
|
$(top_srcdir)/doc/sed.texi: $(top_srcdir)/doc/s-texi
|
|
$(top_srcdir)/doc/s-texi: doc/sed-in.texi $(top_srcdir)/doc/groupify.sed
|
|
sed -nf $(top_srcdir)/doc/groupify.sed \
|
|
< $(top_srcdir)/doc/sed-in.texi > $(top_srcdir)/doc/sed-tmp.texi
|
|
if cmp $(top_srcdir)/doc/sed.texi $(top_srcdir)/doc/sed-tmp.texi; then \
|
|
rm -f $(top_srcdir)/doc/sed-tmp.texi; \
|
|
else \
|
|
mv -f $(top_srcdir)/doc/sed-tmp.texi $(top_srcdir)/doc/sed.texi; \
|
|
fi
|
|
echo stamp > $(top_srcdir)/doc/s-texi
|
|
|
|
doc/sed.1: $(top_srcdir)/sed/sed.c $(top_srcdir)/configure.ac \
|
|
$(top_srcdir)/doc/sed.x
|
|
$(HELP2MAN) --name "stream editor for filtering and transforming text" \
|
|
-p sed --include $(top_srcdir)/doc/sed.x \
|
|
-o $(top_srcdir)/doc/sed.1 $(SEDBIN)
|
|
|
|
dist-hook-man-page:
|
|
touch $(distdir)/doc/sed.1
|