2 # Copyright (C) 2001-2013 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)
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 <http://www.gnu.org/licenses/>.
17 # Test that installing under $exec_prefix is handled by install-exec.
18 # Testing with headers for instance.
22 cat >Makefile.am << 'EOF'
24 inclexecdir = $(exec_prefix)/include
25 inclexec_HEADERS = my-config.h
27 incldatadir = $(prefix)/include
28 incldata_HEADERS = my-data.h
30 ## Standard directories: _DATA
31 ## Commented out are invalid combinations.
37 localstate_DATA = data
42 ##oldinclude_DATA = data
45 ##pkginclude_DATA = data
47 ## Standard directories: _SCRIPTS
48 ## Commented out are invalid combinations.
51 libexec_SCRIPTS = script
52 ##data_SCRIPTS = script
53 ##sysconf_SCRIPTS = script
54 ##localstate_SCRIPTS = script
55 ##lib_SCRIPTS = script
56 ##info_SCRIPTS = script
57 ##man_SCRIPTS = script
58 ##include_SCRIPTS = script
59 ##oldinclude_SCRIPTS = script
60 pkgdata_SCRIPTS = script
61 ##pkglib_SCRIPTS = script
62 ##pkginclude_SCRIPTS = script
68 # install-SCRIPTS targets.
69 sed -n '/^install-data-am/,/^ /p' Makefile.in > produced
71 cat > expected <<'EOF'
72 install-data-am: install-dataDATA install-incldataHEADERS \
73 install-pkgdataDATA install-pkgdataSCRIPTS
76 diff expected produced
79 # install-exec targets.
80 sed -n '/^install-exec-am/,/^ /p' Makefile.in > produced
82 cat > expected <<'EOF'
83 install-exec-am: install-binSCRIPTS install-inclexecHEADERS \
84 install-libexecSCRIPTS install-localstateDATA \
87 diff expected produced