Edit

kc3-lang/automake/tests/depend4.test

Branch :

  • Show log

    Commit

  • Author : Tom Tromey
    Date : 2001-06-29 06:55:25
    Hash : c0d60c16
    Message : 2001-06-29 Raja R Harinath <harinath@cs.umn.edu> * automake.in (saw_sources_p): Work even if there are more than one header files, and more than of one type of header. * tests/Makefile.am (TESTS): Added new file. * tests/depend4.test: New file.

  • tests/depend4.test
  • #! /bin/sh
    
    # check that 'DEP_FILES' is defined when there are many header files
    
    . $srcdir/defs || exit 1
    
    echo AC_PROG_CC >> configure.in
    
    $ACLOCAL || exit 1
    
    headers=
    for header in one.h two.h three.h four.h five.h six.h
    do
        headers="$headers $header"
        cat > Makefile.am << END
    bin_PROGRAMS = fred
    fred_SOURCES = fred1.c $headers
    END
    
        $AUTOMAKE || exit 1
    
        egrep '^(@[^@]+@)*DEP_FILES = ' Makefile.in || exit 1
    done
    
    exit 0