GNU bug report logs - #7333
bug concatenating CLEANFILES in automake 1.11

Previous Next

Package: automake;

Reported by: Andy Wingo <wingo <at> oblong.com>

Date: Fri, 5 Nov 2010 10:35:02 UTC

Severity: normal

Tags: patch

Merged with 7345

Done: Ralf Wildenhues <Ralf.Wildenhues <at> gmx.de>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Andy Wingo <wingo <at> oblong.com>
To: bug-automake <at> gnu.org
Cc: Ben Denckla <bdenckla <at> oblong.com>
Subject: bug concatenating CLEANFILES in automake 1.11
Date: Fri, 05 Nov 2010 11:36:24 +0100
Greets,

We have an automake file that, after includes are processed out, looks
something like this:

# -*- makefile-gmake -*-

CLEANFILES =
BUILT_SOURCES =

CLEANFILES += \
  $(addprefix log/, $(addsuffix .log, $(notdir $(TESTS) _timing))) \
  $(wildcard scratch/*) \
  #
CLEANFILES += \
  $(BUILT_SOURCES) \
  $(OBLONG_pcifiles) \
  #
CLEANFILES += \
  $(man_MANS) \
  $(htmlman_DATA) \
  pod2htmi.tmp \
  pod2htmd.tmp
CLEANFILES +=
if HAVE_FOO
GOBJECTS = $(SOURCES:%.scm=%.go)
CLEANFILES += $(GOBJECTS)
endif

SOURCES =
SOURCES += plasma.scm

BUILT_SOURCES += env
CLEANFILES += env


In the generated Makefile, there is an extraneous backslash:

CLEANFILES = $(addprefix log/, $(addsuffix .log, $(notdir $(TESTS) \
	_timing))) $(wildcard scratch/*) $(BUILT_SOURCES) \
	$(OBLONG_pcifiles) $(man_MANS) $(htmlman_DATA) pod2htmi.tmp \
	pod2htmd.tmp\ $(am__append_3) env
                    ^ it's here

Regardless of the taste of that snippet above ;-), that snippet should
be sufficient to reproduce this error, with --foreign and the following
configure.ac:


AC_INIT(foo, 0.1)
AM_INIT_AUTOMAKE

AC_CONFIG_FILES([Makefile])
AM_CONDITIONAL(HAVE_FOO, 1)


AC_OUTPUT


Thanks,

Andy




This bug report was last modified 14 years and 198 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.