Edit

kc3-lang/automake/tests/subdir3.test

Branch :

  • Show log

    Commit

  • Author : Tom Tromey
    Date : 1999-03-21 21:54:55
    Hash : 4d505649
    Message : * nodep.test: New file. * Makefile.am (TESTS): Added nodep.test. * subdir3.test: Correctly mention _SOURCES in Makefile.am.

  • tests/subdir3.test
  • #! /bin/sh
    
    # Test to make sure subdir source file generates explicit dependency.
    # Also test to make sure only one such dependency is generated.
    
    . $srcdir/defs || exit 1
    
    cat > Makefile.am << 'END'
    bin_PROGRAMS = zardoz widdershins
    zardoz_SOURCES = y.c x/z.c
    widdershins_SOURCES = x/z.c
    END
    
    cat >> configure.in << 'END'
    AC_PROG_CC
    END
    
    mkdir x
    
    : > y.c
    : > x/z.c
    
    $AUTOMAKE || exit 1
    
    num=`grep '^z\.o: x/z\.c$' Makefile.in | wc -l`
    test $num -eq 1