1## Process this file with automake to create Makefile.in
2
3## Makefile for Automake.
4
5# Copyright (C) 1995-2021 Free Software Foundation, Inc.
6
7# This program is free software; you can redistribute it and/or modify
8# it under the terms of the GNU General Public License as published by
9# the Free Software Foundation; either version 2, or (at your option)
10# any later version.
11
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15# GNU General Public License for more details.
16
17# You should have received a copy of the GNU General Public License
18# along with this program.  If not, see <https://www.gnu.org/licenses/>.
19
20## Might be updated later.
21CLEANFILES =
22DISTCLEANFILES =
23MAINTAINERCLEANFILES =
24EXTRA_DIST =
25TAGS_FILES =
26dist_noinst_DATA =
27nodist_noinst_DATA =
28dist_noinst_SCRIPTS =
29nodist_noinst_SCRIPTS =
30
31## ------------ ##
32##  Top level.  ##
33## ------------ ##
34
35EXTRA_DIST += \
36  bootstrap \
37  GNUmakefile \
38  HACKING \
39  NEWS-2.0 \
40  PLANS
41
42# We want a handful of substitutions to be fully-expanded by make;
43# then use config.status to substitute the remainder where a single
44# expansion is sufficient.  We use a funny notation here to avoid
45# configure substitutions in our text.
46do_subst = ( sed \
47  -e "s,[@]configure_input[@],Generated from $$in; do not edit by hand.,g" \
48  -e 's,[@]datadir[@],$(datadir),g' \
49  -e 's,[@]amdir[@],$(amdir),g' \
50  -e 's,[@]bindir[@],$(bindir),g' \
51  -e 's,[@]docdir[@],$(docdir),g' \
52  -e 's,[@]pkgvdatadir[@],$(pkgvdatadir),g' \
53  -e 's,[@]scriptdir[@],$(scriptdir),g' \
54  -e 's,[@]automake_acdir[@],$(automake_acdir),g' \
55  -e 's,[@]system_acdir[@],$(system_acdir),g' \
56## Hack to avoid a spurious substitution in the Automake script (part 1).
57  -e 's,[@]am__isrc[@],!!@!!am__isrc!!@!!,g' \
58  | $(SHELL) ./config.status --file=- \
59## Hack to avoid a spurious substitution in the Automake script (part 2).
60  | sed -e 's,!!@!!am__isrc!!@!!,@''am__isrc@,g' \
61  )
62
63# Generated  files shouldn't contain unexpanded '@substitutions@', and
64# should be made read-only, to prevent them from being edited by mistake
65# instead of the file the are generated from.
66generated_file_finalize = $(AM_V_at) \
67  if LC_ALL=C grep '@[a-zA-Z0-9_][a-zA-Z0-9_]*@' $@-t; then \
68    echo "$@ contains unexpanded substitution (see lines above)"; \
69    exit 1; \
70  fi; \
71  chmod a-w $@-t && mv -f $@-t $@
72
73# Wrapper for the build environment.
74nodist_noinst_SCRIPTS += pre-inst-env
75CLEANFILES += $(noinst_SCRIPTS)
76
77# The master location for INSTALL is lib/INSTALL.
78# This is where "make fetch" will install new versions.
79# Make sure we also update this copy.
80INSTALL: lib/INSTALL
81	$(AM_V_GEN)cp $(srcdir)/lib/INSTALL $@
82
83# We don't use the default name for the autom4te cache directory,
84# so we need this.
85maintainer-clean-local:
86	rm -rf .autom4te.cache
87
88# So that automake won't complain about the missing ChangeLog.
89# The real rule for ChangeLog generation is now in maintainer/maint.mk
90# (as it is maintainer-specific).
91ChangeLog:
92
93# Third-party, obsolescent or experimental stuff.
94EXTRA_DIST += \
95  contrib/tap-driver.pl \
96  contrib/check-html.am \
97  contrib/checklinkx \
98  contrib/multilib/README \
99  contrib/multilib/config-ml.in \
100  contrib/multilib/symlink-tree \
101  contrib/multilib/multilib.am \
102  contrib/multilib/multi.m4 \
103  contrib/README
104
105# Older files, kept mostly for historical interest.
106EXTRA_DIST += \
107  old/ChangeLog-tests \
108  old/ChangeLog.96 \
109  old/ChangeLog.98 \
110  old/ChangeLog.00 \
111  old/ChangeLog.01 \
112  old/ChangeLog.02 \
113  old/ChangeLog.03 \
114  old/ChangeLog.04 \
115  old/ChangeLog.09 \
116  old/ChangeLog.11 \
117  old/TODO
118
119# Maintainer-specific files and scripts.
120EXTRA_DIST += \
121  maintainer/am-ft \
122  maintainer/am-xft \
123  maintainer/rename-tests \
124  maintainer/maint.mk \
125  maintainer/syntax-checks.mk
126
127# Most work delegated to sub-dir makefile fragments.
128include $(srcdir)/bin/local.mk
129include $(srcdir)/doc/local.mk
130include $(srcdir)/lib/local.mk
131include $(srcdir)/lib/Automake/local.mk
132include $(srcdir)/lib/am/local.mk
133include $(srcdir)/m4/local.mk
134include $(srcdir)/t/local.mk
135
136# vim: ft=automake noet
137