new files from elsewhere
[automake.git] / tests / exsource.test
blobe01e3bf976edea4299c6bc51c690c522c326e631
1 #! /bin/sh
3 # Test to make sure EXTRA_..._SOURCES actually works.
4 # Bug report from Henrik Frystyk Nielsen.
6 . $srcdir/defs || exit 1
8 # This test relies on GNU make.
9 make --version > /dev/null 2>&1 || {
10 # Nope.
11 exit 0
14 cat >> configure.in << 'END'
15 AC_PROG_CC
16 END
18 cat > Makefile.am << 'END'
19 bin_PROGRAMS = www
20 www_SOURCES = www.c @extra_stuff@
21 EXTRA_www_SOURCES = xtra.c
22 magic:
23 @echo $(DEP_FILES)
24 END
26 : > www.c
27 : > xtra.c
29 $AUTOMAKE || exit 1
31 # Make sure the Makefile.in can find the .-files it needs.
32 mkdir .deps
33 echo > .deps/.P
34 echo > .deps/xtra.P
35 echo > .deps/www.P
37 make -s -f Makefile.in srcdir=`pwd` magic | grep xtra