bug-automake
[Top][All Lists]
Advanced

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

automake, conditionals, warnings about overriding commands using .yy-fil


From: roman . fietze
Subject: automake, conditionals, warnings about overriding commands using .yy-files
Date: Wed, 25 Feb 2004 10:09:39 +0200


Hello,

First of all, apologize the MUA I'm using instead of e.g. mutt,
but currently I have no chance to route my mail through Notes :)

This could also be the reason for a mangled file name of the attachment,
which originally was amlex_test.tar.bz2. I've included Makefile.am in here,
too, just in case.

--- snippety snip ---------------------
# amlex_test/Makefile.am
#
# $Id$

AM_YFLAGS               =       -d

BUILT_SOURCES                =        tparse.h

if CASE_A
bin_PROGRAMS                =        ta
ta_SOURCES                =        ta.cc tparse.h tscan.ll tparse.yy
else
bin_PROGRAMS                =        tb
tb_SOURCES                =        tb.cc tparse.h tscan.ll tparse.yy
endif

MOSTLYCLEANFILES        =        *~ tparse.h tscan.cc tparse.cc
DISTCLEANFILES                =        ta tb aclocal.m4 config.h.in configure Makefile.in
--- snappety snap ---------------------

Just a minor problem: when compiling the sources in
the attachmant using the files in the attachment I get

Makefile:250: warning: overriding commands for target `tparse.h'
Makefile:242: warning: ignoring old commands for target `tparse.h'

This is caused by the occurence of tparse.h or tparse.yy in two separate conditionals of Makefile.am, causing automake to create two rules "tparse.h: tparse.yy ...".

I'm not too familiar with automake to fix this if necessary at all,
maybe I've just got something wrong in my Makefile.am.


Roman

--
Roman Fietze    Telemotive AG

reply via email to

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