source: trunk/essentials/sys-devel/automake-1.8/tests/instdat2.test

Last change on this file was 3118, checked in by bird, 18 years ago

automake 1.8.5

File size: 2.4 KB
Line 
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
26cat >Makefile.am << 'EOF'
27# User directories.
28inclexecdir = $(exec_prefix)/include
29inclexec_HEADERS = my-config.h
30
31incldatadir = $(prefix)/include
32incldata_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
39data_DATA = data
40sysconf_DATA = data
41localstate_DATA = data
42##lib_DATA = data
43##info_DATA = data
44##man_DATA = data
45##include_DATA = data
46##oldinclude_DATA = data
47pkgdata_DATA = data
48##pkglib_DATA = data
49##pkginclude_DATA = data
50
51## Standard directories: _SCRIPTS
52## Commented out are invalid combinations.
53bin_SCRIPTS = script
54sbin_SCRIPTS = script
55libexec_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
64pkgdata_SCRIPTS = script
65##pkglib_SCRIPTS = script
66##pkginclude_SCRIPTS = script
67EOF
68
69set -e
70$ACLOCAL || exit 1
71$AUTOMAKE
72
73# install-SCRIPTS targets.
74sed -n '/^install-data-am/,/^ /p' Makefile.in > produced
75
76cat > expected <<'EOF'
77install-data-am: install-dataDATA install-incldataHEADERS \
78 install-pkgdataDATA install-pkgdataSCRIPTS
79EOF
80
81diff expected produced
82
83
84# install-exec targets.
85sed -n '/^install-exec-am/,/^ /p' Makefile.in > produced
86
87cat > expected <<'EOF'
88install-exec-am: install-binSCRIPTS install-inclexecHEADERS \
89 install-libexecSCRIPTS install-localstateDATA \
90EOF
91
92diff expected produced
93
94exit 0
Note: See TracBrowser for help on using the repository browser.