2 # Copyright (C) 2001, 2002 Free Software Foundation, Inc.
4 # This file is part of GNU Automake.
6 # GNU Automake is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3, or (at your option)
11 # GNU Automake is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with Automake; see the file COPYING. If not, write to
18 # the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 # Boston, MA 02110-1301, USA.
21 # Test that installing under $exec_prefix is handled by install-exec.
22 # Testing with headers for instance.
26 cat >Makefile.am << 'EOF'
28 inclexecdir = $(exec_prefix)/include
29 inclexec_HEADERS = my-config.h
31 incldatadir = $(prefix)/include
32 incldata_HEADERS = my-data.h
34 ## Standard directories: _DATA
35 ## Commented out are invalid combinations.
41 localstate_DATA = data
46 ##oldinclude_DATA = data
49 ##pkginclude_DATA = data
51 ## Standard directories: _SCRIPTS
52 ## Commented out are invalid combinations.
55 libexec_SCRIPTS = script
56 ##data_SCRIPTS = script
57 ##sysconf_SCRIPTS = script
58 ##localstate_SCRIPTS = script
59 ##lib_SCRIPTS = script
60 ##info_SCRIPTS = script
61 ##man_SCRIPTS = script
62 ##include_SCRIPTS = script
63 ##oldinclude_SCRIPTS = script
64 pkgdata_SCRIPTS = script
65 ##pkglib_SCRIPTS = script
66 ##pkginclude_SCRIPTS = script
73 # install-SCRIPTS targets.
74 sed -n '/^install-data-am/,/^ /p' Makefile.in > produced
76 cat > expected <<'EOF'
77 install-data-am: install-dataDATA install-incldataHEADERS \
78 install-pkgdataDATA install-pkgdataSCRIPTS
81 diff expected produced
84 # install-exec targets.
85 sed -n '/^install-exec-am/,/^ /p' Makefile.in > produced
87 cat > expected <<'EOF'
88 install-exec-am: install-binSCRIPTS install-inclexecHEADERS \
89 install-libexecSCRIPTS install-localstateDATA \
92 diff expected produced