Enable traces; wipe out the old configure.in parser.
[platform/upstream/automake.git] / tests / suffix6.test
1 #! /bin/sh
2
3 # Test to make sure Automake supports implicit rules with dot-less
4 # extensions.  Also make sure that `.o' is handled like `.$(OBJEXT)'.
5
6 . $srcdir/defs || exit 1
7
8 cat > Makefile.am << 'END'
9 SUFFIXES = a b .$(OBJEXT) c .o
10 bin_PROGRAMS = foo
11 foo_SOURCES = fooa fuc
12 ab:
13         cp $< $@
14 b.$(OBJEXT):
15         cp $< $@
16 c.o:
17         cp $< $@
18 END
19
20 : > fooa
21
22 $ACLOCAL || exit 1
23 $AUTOMAKE || exit 1
24
25 # Automake must figure that fooa translates to foo.$(OBJEXT) and
26 # foo.$(OBJEXT) using the following rules:
27 #  fooa --[ab]--> foob --[b.$(OBJEXT)]--> foo.$(OBJEXT)
28 grep '_OBJECTS.* foo\.$(OBJEXT)' Makefile.in || exit 1
29 #  fuc --[c.o]--> fu.$(OBJEXT)  ## This is really meant !
30 grep '_OBJECTS.* fu\.$(OBJEXT)' Makefile.in || exit 1