VirtualBox

source: kBuild/trunk/src/sed/Makefile.am@ 3613

Last change on this file since 3613 was 3613, checked in by bird, 7 months ago

src/sed: Merged in changes between 4.1.5 and 4.9 from the vendor branch. (svn merge /vendor/sed/4.1.5 /vendor/sed/current .)

File size: 4.3 KB
Line 
1# Copyright (C) 1990-2022 Free Software Foundation, Inc.
2
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.
7
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
16PACKAGE = sed
17
18SUBDIRS = po . gnulib-tests
19
20
21# This applies to all parts: gnulib, sed, testsuites
22AM_CPPFLAGS = -I$(top_srcdir) \
23 -I$(top_srcdir)/lib \
24 -I$(top_builddir)/lib \
25 -I$(top_builddir)/sed
26
27AM_CFLAGS =
28BUILT_SOURCES =
29CLEANFILES =
30EXTRA_DIST =
31MAINTAINERCLEANFILES =
32MOSTLYCLEANDIRS =
33MOSTLYCLEANFILES =
34SUFFIXES =
35bin_PROGRAMS =
36noinst_LIBRARIES =
37noinst_DATA =
38noinst_HEADERS = basicdefs.h
39DISTCLEANFILES =
40
41EXTRA_DIST += BUGS THANKS.in \
42 .version \
43 .mailmap ChangeLog-2014 po/ChangeLog-2014 \
44 bootstrap bootstrap.conf build-aux/help2man \
45 thanks-gen
46
47BUILT_SOURCES += .version
48.version:
49 $(AM_V_GEN)echo $(VERSION) > $@-t && mv $@-t $@
50
51# Arrange so that .tarball-version appears only in the distribution
52# tarball, and never in a checked-out repository.
53dist-hook: gen-ChangeLog
54 $(AM_V_GEN)echo $(VERSION) > $(distdir)/.tarball-version
55
56gen_start_date = 2014-09-06
57.PHONY: gen-ChangeLog
58gen-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.
73ASSORT = LC_ALL=C sort
74
75# Extract all lines up to the first one starting with "##".
76prologue = perl -ne '/^\#\#/ and exit; print' $(srcdir)/THANKS.in
77
78THANKS: 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
93AM_DISTCHECK_CONFIGURE_FLAGS = XGETTEXT='$(SHELL) -c : dummy' $(EXTRA_DC_FLAGS)
94EXTRA_DC_FLAGS =
95
96full-distcheck:
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
112
113include $(top_srcdir)/lib/local.mk
114include $(top_srcdir)/sed/local.mk
115include $(top_srcdir)/doc/local.mk
116include $(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.
123distclean-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.
128check-expensive:
129 $(MAKE) check RUN_EXPENSIVE_TESTS=yes
130check-very-expensive:
131 $(MAKE) check-expensive RUN_VERY_EXPENSIVE_TESTS=yes
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette