Tag
Hash :
7aad1797
Author :
Date :
2002-01-23T20:53:28
* lib/am/depend.am (distclean-depend): Erase %DEPDIRS%, not $(DEPDIRS). * automake.in (handle_languages): Compute and substitute %DEPDIRS%. * tests/pr224.test: Make sure .deps subdirectories are erased by distclean.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
#! /bin/sh
# Test for $(top_srcdir) with dependencies.
required=gcc
. $srcdir/defs || exit 1
mkdir foo
cat >foo/main.c <<'EOF'
int main() { return 0; }
EOF
cat >Makefile.am <<'EOF'
AUTOMAKE_OPTIONS = subdir-objects
bin_PROGRAMS = bar
bar_SOURCES = foo/main.c
EOF
cat >configure.in <<'EOF'
AC_INIT(foo/main.c)
AC_CONFIG_AUX_DIR(.)
AM_INIT_AUTOMAKE(test_am, 1.0)
AC_PROG_CC
AM_PROG_CC_C_O
AC_OUTPUT(Makefile)
EOF
touch README NEWS AUTHORS ChangeLog
mkdir build
set -e
$ACLOCAL
$AUTOCONF
$AUTOMAKE -a
cd build
CC='gcc' ../configure
$MAKE
test -d foo/.deps
make distclean
test -d foo/.deps && exit 1
: