doc: typos in test file.
[automake.git] / t / primary-prefix-valid-couples.sh
blob57e0096c22251e4c5f2f9c1dd3012a494837f3b0
1 #! /bin/sh
2 # Copyright (C) 2011-2024 Free Software Foundation, Inc.
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2, or (at your option)
7 # any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program. If not, see <https://www.gnu.org/licenses/>.
17 # Test for valid prefix/primary combinations.
18 # See also test 'primary-prefix-invalid-couples.sh'.
20 . test-init.sh
22 cat >> configure.ac <<'END'
23 AC_PROG_CC
24 AM_PROG_AR
25 AC_PROG_RANLIB
26 AC_PROG_LIBTOOL
27 AM_PATH_PYTHON
28 AM_PATH_LISPDIR
29 END
31 # Fake libtool availability.
32 : > ltmain.sh
33 : > config.sub
34 : > config.guess
35 cat > acinclude.m4 <<'END'
36 AC_DEFUN([AC_PROG_LIBTOOL],
37 [AC_SUBST([LIBTOOL], [:])])
38 END
40 # Other required files.
41 echo '@setfilename foo.info' > foo.texi
42 : > texinfo.tex
43 : > py-compile
44 : > ar-lib
46 # Setup Makefile.am.
48 : > Makefile.am
50 for p in bin sbin libexec pkglibexec; do
51 echo "${p}_PROGRAMS = prog-$p" >> Makefile.am
52 done
54 for p in lib pkglib; do
55 echo "${p}_LIBRARIES = libs-$p.a" >> Makefile.am
56 echo "${p}_LTLIBRARIES = libd-$p.la" >> Makefile.am
57 done
59 for p in bin sbin libexec pkglibexec pkgdata; do
60 echo "${p}_SCRIPTS = $p.sh" >> Makefile.am
61 done
63 for p in data dataroot pkgdata doc html dvi pdf ps sysconf \
64 sharedstate localstate lisp; do
65 echo "${p}_DATA = $p.dat" >> Makefile.am
66 done
68 for p in include oldinclude pkginclude; do
69 echo "${p}_HEADERS = $p.h" >> Makefile.am
70 done
72 for p in man man1 man2 man3 man4 man5 man6 man7 man8 man9; do
73 echo "${p}_MANS = bar.$p"
74 done
76 echo "info_TEXINFOS = foo.texi" >> Makefile.am
77 echo "lisp_LISP = foo.el" >> Makefile.am
78 echo "python_PYTHON = foo.py" >> Makefile.am
80 awk '{print NR ":" $0}' Makefile.am # For debugging.
82 # Go with the tests.
84 $ACLOCAL
85 $AUTOMAKE