| 1 |
# Copyright 2010-2021,2023 Thomas E. Dickey |
| 2 |
# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. |
| 3 |
# This Makefile.in is free software; the Free Software Foundation |
| 4 |
# gives unlimited permission to copy and/or distribute it, |
| 5 |
# with or without modifications, as long as this notice is preserved. |
| 6 |
|
| 7 |
# This program is distributed in the hope that it will be useful, |
| 8 |
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without |
| 9 |
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
| 10 |
# PARTICULAR PURPOSE. |
| 11 |
|
| 12 |
|
| 13 |
SHELL = @SHELL@ |
| 14 |
|
| 15 |
srcdir = @srcdir@ |
| 16 |
top_srcdir = @top_srcdir@ |
| 17 |
VPATH = @srcdir@ |
| 18 |
prefix = @prefix@ |
| 19 |
exec_prefix = @exec_prefix@ |
| 20 |
|
| 21 |
datarootdir = @datarootdir@ |
| 22 |
datadir = @datadir@ |
| 23 |
|
| 24 |
DESTDIR = |
| 25 |
|
| 26 |
top_builddir = .. |
| 27 |
|
| 28 |
transform = @program_transform_name@ |
| 29 |
|
| 30 |
EXPR = @EXPR@ |
| 31 |
M4 = @M4@ |
| 32 |
PACKAGE = @PACKAGE@ |
| 33 |
VERSION = @VERSION@ |
| 34 |
|
| 35 |
SUITE = suite.at \ |
| 36 |
m4sugar.at \ |
| 37 |
m4sh.at \ |
| 38 |
base.at \ |
| 39 |
tools.at \ |
| 40 |
torture.at \ |
| 41 |
compile.at \ |
| 42 |
semantics.at \ |
| 43 |
acgeneral.at \ |
| 44 |
acspecific.at \ |
| 45 |
acfunctions.at \ |
| 46 |
aclang.at \ |
| 47 |
acheaders.at \ |
| 48 |
actypes.at |
| 49 |
|
| 50 |
EGREP = @EGREP@ |
| 51 |
FGREP = @FGREP@ |
| 52 |
|
| 53 |
# We don't actually distribute the testsuite, since one only |
| 54 |
# needs m4 to build it, m4 being required anyway to install Autoconf. |
| 55 |
EXTRA_DIST = README atgeneral.m4 atspecific.m4 aclocal.m4 $(SUITE) mktests.sh |
| 56 |
|
| 57 |
# The files which contains macro we check for syntax. Don't use $(top_srcdir) |
| 58 |
# here since below we explicitly `cd' to $srcdir. As for the dependencies, |
| 59 |
# thanks God for VPATH. Hm... |
| 60 |
MACRO_FILES = \ |
| 61 |
../acgeneral.m4 \ |
| 62 |
../acspecific.m4 \ |
| 63 |
../acfunctions.m4 \ |
| 64 |
../aclang.m4 \ |
| 65 |
../acheaders.m4 \ |
| 66 |
../actypes.m4 |
| 67 |
|
| 68 |
CLEANFILES = \ |
| 69 |
debug-*.sh \ |
| 70 |
macro \ |
| 71 |
configure \ |
| 72 |
configure.in \ |
| 73 |
configure.ac \ |
| 74 |
config.status \ |
| 75 |
config.cache \ |
| 76 |
config.log \ |
| 77 |
config.h.in \ |
| 78 |
config.h \ |
| 79 |
config.hin \ |
| 80 |
state-* \ |
| 81 |
at-* \ |
| 82 |
stderr \ |
| 83 |
stdout \ |
| 84 |
empty \ |
| 85 |
config.guess \ |
| 86 |
config.sub \ |
| 87 |
expr \ |
| 88 |
libtool \ |
| 89 |
ltconfig \ |
| 90 |
ltmain.sh \ |
| 91 |
install-sh |
| 92 |
|
| 93 |
DISTCLEANFILES = atconfig testsuite |
| 94 |
CONFIG_CLEAN_FILES = \ |
| 95 |
atconfig \ |
| 96 |
mktests.sh \ |
| 97 |
acgeneral.at \ |
| 98 |
acspecific.at \ |
| 99 |
acfunctions.at \ |
| 100 |
aclang.at \ |
| 101 |
acheaders.at \ |
| 102 |
actypes.at |
| 103 |
|
| 104 |
DIST_COMMON = README Makefile.am Makefile.in atconfig.in |
| 105 |
|
| 106 |
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) |
| 107 |
|
| 108 |
TAR = tar |
| 109 |
GZIP_ENV = --best |
| 110 |
all: all-redirect |
| 111 |
.SUFFIXES: |
| 112 |
|
| 113 |
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
| 114 |
cd $(top_builddir) \ |
| 115 |
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status |
| 116 |
|
| 117 |
atconfig: $(top_builddir)/config.status atconfig.in |
| 118 |
cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status |
| 119 |
tags: TAGS |
| 120 |
TAGS: |
| 121 |
|
| 122 |
|
| 123 |
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) |
| 124 |
|
| 125 |
subdir = tests |
| 126 |
|
| 127 |
distdir: $(DISTFILES) |
| 128 |
@for file in $(DISTFILES); do \ |
| 129 |
d=$(srcdir); \ |
| 130 |
if test -d $$d/$$file; then \ |
| 131 |
cp -pr $$d/$$file $(distdir)/$$file; \ |
| 132 |
else \ |
| 133 |
test -f $(distdir)/$$file \ |
| 134 |
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \ |
| 135 |
|| cp -p $$d/$$file $(distdir)/$$file || :; \ |
| 136 |
fi; \ |
| 137 |
done |
| 138 |
info-am: |
| 139 |
info: info-am |
| 140 |
dvi-am: |
| 141 |
dvi: dvi-am |
| 142 |
check-am: all-am |
| 143 |
$(MAKE) $(AM_MAKEFLAGS) check-local |
| 144 |
check: check-am |
| 145 |
installcheck-am: |
| 146 |
installcheck: installcheck-am |
| 147 |
install-exec-am: |
| 148 |
install-exec: install-exec-am |
| 149 |
|
| 150 |
install-data-am: |
| 151 |
install-data: install-data-am |
| 152 |
|
| 153 |
install-am: all-am |
| 154 |
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am |
| 155 |
install: install-am |
| 156 |
uninstall-am: |
| 157 |
uninstall: uninstall-am |
| 158 |
all-am: Makefile |
| 159 |
all-redirect: all-am |
| 160 |
install-strip: |
| 161 |
$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install |
| 162 |
installdirs: |
| 163 |
|
| 164 |
|
| 165 |
mostlyclean-generic: |
| 166 |
|
| 167 |
clean-generic: |
| 168 |
-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) |
| 169 |
|
| 170 |
distclean-generic: |
| 171 |
-rm -f Makefile $(CONFIG_CLEAN_FILES) |
| 172 |
-rm -f config.cache config.log stamp-h stamp-h[0-9]* |
| 173 |
-test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES) |
| 174 |
|
| 175 |
maintainer-clean-generic: |
| 176 |
mostlyclean-am: mostlyclean-generic |
| 177 |
|
| 178 |
mostlyclean: mostlyclean-am |
| 179 |
|
| 180 |
clean-am: clean-generic mostlyclean-am |
| 181 |
|
| 182 |
clean: clean-am |
| 183 |
|
| 184 |
distclean-am: distclean-generic clean-am |
| 185 |
|
| 186 |
distclean: distclean-am |
| 187 |
|
| 188 |
maintainer-clean-am: maintainer-clean-generic distclean-am |
| 189 |
@echo "This command is intended for maintainers to use;" |
| 190 |
@echo "it deletes files that may require special tools to rebuild." |
| 191 |
|
| 192 |
maintainer-clean: maintainer-clean-am |
| 193 |
|
| 194 |
.PHONY: tags distdir info-am info dvi-am dvi check-local check check-am \ |
| 195 |
installcheck-am installcheck install-exec-am install-exec \ |
| 196 |
install-data-am install-data install-am install uninstall-am uninstall \ |
| 197 |
all-redirect all-am all installdirs mostlyclean-generic \ |
| 198 |
distclean-generic clean-generic maintainer-clean-generic clean \ |
| 199 |
mostlyclean distclean maintainer-clean |
| 200 |
|
| 201 |
|
| 202 |
check-local: atconfig testsuite |
| 203 |
@echo "making $@" |
| 204 |
@FGREP="$(FGREP)" EGREP="$(EGREP)" $(SHELL) testsuite |
| 205 |
|
| 206 |
testsuite: $(top_srcdir)/m4sugar.m4 $(top_srcdir)/m4sh.m4 \ |
| 207 |
atgeneral.m4 atspecific.m4 \ |
| 208 |
$(SUITE) |
| 209 |
$(M4) -I $(srcdir) -I $(top_srcdir) atspecific.m4 suite.at | \ |
| 210 |
sed -e 's/[ ]*$$//' | \ |
| 211 |
sed -e '/^$$/N;/\n$$/D' >[email protected] |
| 212 |
chmod +x [email protected] |
| 213 |
mv [email protected] $@ |
| 214 |
|
| 215 |
acgeneral.at: mktests.sh $(MACRO_FILES) |
| 216 |
cd $(srcdir) && $(SHELL) ./mktests.sh $(MACRO_FILES) |
| 217 |
|
| 218 |
acspecific.at: mktests.sh $(MACRO_FILES) |
| 219 |
cd $(srcdir) && $(SHELL) ./mktests.sh $(MACRO_FILES) |
| 220 |
|
| 221 |
acfunctions.at: mktests.sh $(MACRO_FILES) |
| 222 |
cd $(srcdir) && $(SHELL) ./mktests.sh $(MACRO_FILES) |
| 223 |
|
| 224 |
aclang.at: mktests.sh $(MACRO_FILES) |
| 225 |
cd $(srcdir) && $(SHELL) ./mktests.sh $(MACRO_FILES) |
| 226 |
|
| 227 |
acheaders.at: mktests.sh $(MACRO_FILES) |
| 228 |
cd $(srcdir) && $(SHELL) ./mktests.sh $(MACRO_FILES) |
| 229 |
|
| 230 |
actypes.at: mktests.sh $(MACRO_FILES) |
| 231 |
cd $(srcdir) && $(SHELL) ./mktests.sh $(MACRO_FILES) |
| 232 |
|
| 233 |
maintainer-check: maintainer-check-posix maintainer-check-c++ |
| 234 |
|
| 235 |
# The hairy heredoc is more robust than using echo. |
| 236 |
expr: |
| 237 |
echo '#! $(SHELL)' >expr |
| 238 |
echo 'result=`@EXPR@ "$$@"`' >>expr |
| 239 |
echo 'estatus=$$?' >>expr |
| 240 |
echo 'cat <<EOF' >>expr |
| 241 |
echo '$${result:-0}' >>expr |
| 242 |
echo 'EOF' >>expr |
| 243 |
echo 'exit $$estatus' >>expr |
| 244 |
chmod +x expr |
| 245 |
|
| 246 |
# Try the test suite with more severe environments. |
| 247 |
maintainer-check-posix: expr |
| 248 |
POSIXLY_CORRECTLY=yes make check |
| 249 |
rm expr |
| 250 |
|
| 251 |
# Try using G++ as a C compiler. |
| 252 |
maintainer-check-c++: |
| 253 |
CC=g++ make check |
| 254 |
|
| 255 |
# Tell versions [3.59,3.63) of GNU make to not export all variables. |
| 256 |
# Otherwise a system limit (for SysV at least) may be exceeded. |
| 257 |
.NOEXPORT: |