bug-automake
[Top][All Lists]
Advanced

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

conditional suffix rules do not work


From: Ralf Wildenhues
Subject: conditional suffix rules do not work
Date: Wed, 8 Jun 2005 19:27:36 +0200
User-agent: Mutt/1.4.1i

Hi there,

It is not possible to override an internal suffix rule within an
Automake conditional.  Automake puts the conditional marker only on the
first line of the self-output rule.

Regards,
Ralf

touch foo.c
cat >configure.ac <<EOF
AC_INIT(a,1,b)
AM_INIT_AUTOMAKE(foreign)
AC_PROG_CC
AM_CONDITIONAL(FOO, :)
AC_CONFIG_FILES(Makefile)
AC_OUTPUT
EOF
cat >Makefile.am <<EOF
SUFFIXES = .c .o
bin_PROGRAMS = foo
if FOO
.c.o:
        echo hi
endif
EOF
autoreconf -vif
./configure
make                    # error


sed -n '/address@hidden@/,/^$/p' Makefile.in
@address@hidden:
@am__fastdepCC_TRUE@    if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c 
-o $@ $<; \
@am__fastdepCC_TRUE@    then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else 
rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
@AMDEP_TRUE@@am__fastdepCC_FALSE@       source='$<' object='$@' libtool=no 
@AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@       DEPDIR=$(DEPDIR) $(CCDEPMODE) 
$(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@   $(COMPILE) -c $<




reply via email to

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