| 1 | #! /bin/sh
|
|---|
| 2 | # Copyright (C) 2001, 2002 Free Software Foundation, Inc.
|
|---|
| 3 | #
|
|---|
| 4 | # This file is part of GNU Automake.
|
|---|
| 5 | #
|
|---|
| 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 2, or (at your option)
|
|---|
| 9 | # any later version.
|
|---|
| 10 | #
|
|---|
| 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.
|
|---|
| 15 | #
|
|---|
| 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., 59 Temple Place - Suite 330,
|
|---|
| 19 | # Boston, MA 02111-1307, USA.
|
|---|
| 20 |
|
|---|
| 21 | # Test that installing under $exec_prefix is handled by install-exec.
|
|---|
| 22 | # Testing with headers for instance.
|
|---|
| 23 |
|
|---|
| 24 | . ./defs || exit 1
|
|---|
| 25 |
|
|---|
| 26 | cat >Makefile.am << 'EOF'
|
|---|
| 27 | # User directories.
|
|---|
| 28 | inclexecdir = $(exec_prefix)/include
|
|---|
| 29 | inclexec_HEADERS = my-config.h
|
|---|
| 30 |
|
|---|
| 31 | incldatadir = $(prefix)/include
|
|---|
| 32 | incldata_HEADERS = my-data.h
|
|---|
| 33 |
|
|---|
| 34 | ## Standard directories: _DATA
|
|---|
| 35 | ## Commented out are invalid combinations.
|
|---|
| 36 | ##bin_DATA = data
|
|---|
| 37 | ##sbin_DATA = data
|
|---|
| 38 | ##libexec_DATA = data
|
|---|
| 39 | data_DATA = data
|
|---|
| 40 | sysconf_DATA = data
|
|---|
| 41 | localstate_DATA = data
|
|---|
| 42 | ##lib_DATA = data
|
|---|
| 43 | ##info_DATA = data
|
|---|
| 44 | ##man_DATA = data
|
|---|
| 45 | ##include_DATA = data
|
|---|
| 46 | ##oldinclude_DATA = data
|
|---|
| 47 | pkgdata_DATA = data
|
|---|
| 48 | ##pkglib_DATA = data
|
|---|
| 49 | ##pkginclude_DATA = data
|
|---|
| 50 |
|
|---|
| 51 | ## Standard directories: _SCRIPTS
|
|---|
| 52 | ## Commented out are invalid combinations.
|
|---|
| 53 | bin_SCRIPTS = script
|
|---|
| 54 | sbin_SCRIPTS = script
|
|---|
| 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
|
|---|
| 67 | EOF
|
|---|
| 68 |
|
|---|
| 69 | set -e
|
|---|
| 70 | $ACLOCAL || exit 1
|
|---|
| 71 | $AUTOMAKE
|
|---|
| 72 |
|
|---|
| 73 | # install-SCRIPTS targets.
|
|---|
| 74 | sed -n '/^install-data-am/,/^ /p' Makefile.in > produced
|
|---|
| 75 |
|
|---|
| 76 | cat > expected <<'EOF'
|
|---|
| 77 | install-data-am: install-dataDATA install-incldataHEADERS \
|
|---|
| 78 | install-pkgdataDATA install-pkgdataSCRIPTS
|
|---|
| 79 | EOF
|
|---|
| 80 |
|
|---|
| 81 | diff expected produced
|
|---|
| 82 |
|
|---|
| 83 |
|
|---|
| 84 | # install-exec targets.
|
|---|
| 85 | sed -n '/^install-exec-am/,/^ /p' Makefile.in > produced
|
|---|
| 86 |
|
|---|
| 87 | cat > expected <<'EOF'
|
|---|
| 88 | install-exec-am: install-binSCRIPTS install-inclexecHEADERS \
|
|---|
| 89 | install-libexecSCRIPTS install-localstateDATA \
|
|---|
| 90 | EOF
|
|---|
| 91 |
|
|---|
| 92 | diff expected produced
|
|---|
| 93 |
|
|---|
| 94 | exit 0
|
|---|