3 # Test that installing under $exec_prefix is handled by install-exec.
4 # Testing with headers for instance.
6 .
$srcdir/defs ||
exit 1
8 cat >Makefile.am
<< 'EOF'
10 inclexecdir
= $
(exec_prefix
)/include
11 inclexec_HEADERS
= my-config.h
13 incldatadir
= $
(prefix
)/include
14 incldata_HEADERS
= my-data.h
16 ## Standard directories: _DATA
17 ## Commented out are invalid combinations.
23 localstate_DATA
= data
28 ##oldinclude_DATA = data
31 ##pkginclude_DATA = data
33 ## Standard directories: _SCRIPTS
34 ## Commented out are invalid combinations.
37 libexec_SCRIPTS
= script
38 ##data_SCRIPTS = script
39 ##sysconf_SCRIPTS = script
40 ##localstate_SCRIPTS = script
41 ##lib_SCRIPTS = script
42 ##info_SCRIPTS = script
43 ##man_SCRIPTS = script
44 ##include_SCRIPTS = script
45 ##oldinclude_SCRIPTS = script
46 pkgdata_SCRIPTS
= script
47 ##pkglib_SCRIPTS = script
48 ##pkginclude_SCRIPTS = script
54 # install-SCRIPTS targets.
55 sed -n '/^install-data-am/,/^ /p' Makefile.
in > produced
57 cat > expected
<<'EOF'
58 install-data-am: install-dataDATA install-incldataHEADERS \
59 install-pkgdataDATA install-pkgdataSCRIPTS
62 diff expected produced
65 # install-exec targets.
66 sed -n '/^install-exec-am/,/^ /p' Makefile.
in > produced
68 cat > expected
<<'EOF'
69 install-exec-am: install-binSCRIPTS install-inclexecHEADERS \
70 install-libexecSCRIPTS install-localstateDATA \
73 diff expected produced