automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Colon in AC_OUTPUT prevents .deps creation


From: Pavel Roskin
Subject: Colon in AC_OUTPUT prevents .deps creation
Date: Tue, 28 Aug 2001 04:38:39 -0400 (EDT)

Hello!

Another bug in Automake 1.5.  Using ':' in AC_OUTPUT (e.g. to use an
alternate Makefile.am) prevents configure from creating .deps directories.

The test depcomp3.test is attached.

-- 
Regards,
Pavel Roskin

------------------------------------------
#! /bin/sh

# Make sure that .dep is created even when ":" is used in AC_OUTPUT
# From Pavel Roskin.

. $srcdir/defs || exit 1

cat > configure.in << 'END'
AC_INIT(subdir/foo.c)
AM_INIT_AUTOMAKE(nonesuch, nonesuch)
PACKAGE=nonesuch
VERSION=nonesuch
AC_PROG_CC
AC_OUTPUT(Makefile subdir/Makefile:subdir/Mk.in)
END

cat > Makefile.am << 'END'
SUBDIRS = subdir
END

mkdir subdir

cat > subdir/Mk.am << 'END'
bin_PROGRAMS = foo
foo_SOURCES = foo.c
END

: > subdir/foo.c

# Fail gracefully if no autoconf.
$needs_autoconf

# Likewise for gcc.
(gcc -v) > /dev/null 2>&1 || exit 77

# Ignore user CFLAGS.
CFLAGS=
export CFLAGS

$ACLOCAL || exit 1
$AUTOMAKE --add-missing || exit 1
$AUTOCONF || exit 1

CC='gcc' ./configure
test -d subdir/.deps
------------------------------------------




reply via email to

[Prev in Thread] Current Thread [Next in Thread]