* lib/am/depend.am (distclean-depend): Erase %DEPDIRS%, not $(DEPDIRS).
[platform/upstream/automake.git] / tests / depcomp.test
1 #! /bin/sh
2
3 # Test to make sure depcomp is installed and found properly
4 # when required for multiple directories
5
6 . $srcdir/defs || exit 1
7
8 cat > configure.in << 'END'
9 AC_INIT
10 AM_INIT_AUTOMAKE(nonesuch, nonesuch)
11 AC_PROG_CC
12 AC_OUTPUT(subdir/Makefile subdir2/Makefile)
13 END
14
15 rm -f depcomp
16 mkdir subdir
17 mkdir subdir2
18
19 cat > subdir/Makefile.am << 'END'
20 noinst_PROGRAMS = foo
21 foo_SOURCES = foo.c
22 END
23
24 cp subdir/Makefile.am subdir2/Makefile.am
25
26 : > subdir/foo.c
27 : > subdir2/foo.c
28
29 $ACLOCAL || exit 1
30 $AUTOMAKE --add-missing || exit 1
31
32 # There used to be a bug where this was created in the first subdir with C
33 # sources in it instead of in $top_srcdir or $ac_auxdir
34 test -f depcomp || exit 1