summaryrefslogtreecommitdiff
path: root/tests/suffix7.test
blob: 944f91f46e1c3fa1850a5daa077bfb1cfae26ad1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#! /bin/sh

# Test to make sure Automake supports implicit rules "confusing"
# extensions.  Inspired by a mail from Alex Hornby. 

. $srcdir/defs || exit 1

cat > Makefile.am << 'END'
SUFFIXES = .idl S.cpp C.h
SUFFIXES += C.cpp S.h
.idlC.cpp:
	cp $< $@
END

: > fooa

$ACLOCAL || exit 1
$AUTOMAKE || exit 1

# Make sure Automake has NOT recognized .cpp and .idlC as two new
# extensions.
grep 'SUFFIXES.* \.cpp' Makefile.in && exit 1
grep 'SUFFIXES.* \.idlC' Makefile.in && exit 1

exit 0