* automake.texi (Macros): Document AM_PROG_AS.
[automake.git] / tests / instdata2.test
blob569e6c13125fa91b42c5ea554d5a3b9956e0888e
1 #! /bin/sh
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'
9 # User directories.
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.
18 ##bin_DATA = data
19 ##sbin_DATA = data
20 ##libexec_DATA = data
21 data_DATA = data
22 sysconf_DATA = data
23 localstate_DATA = data
24 ##lib_DATA = data
25 ##info_DATA = data
26 ##man_DATA = data
27 ##include_DATA = data
28 ##oldinclude_DATA = data
29 pkgdata_DATA = data
30 ##pkglib_DATA = data
31 ##pkginclude_DATA = data
33 ## Standard directories: _SCRIPTS
34 ## Commented out are invalid combinations.
35 bin_SCRIPTS = script
36 sbin_SCRIPTS = script
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
49 EOF
51 set -e
52 $AUTOMAKE
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
60 EOF
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 \
71 EOF
73 diff expected produced
75 exit 0