bug-automake
[Top][All Lists]
Advanced

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

Makefile depending on BUILT_SOURCES breaks make distclean


From: Sven M. Hallberg
Subject: Makefile depending on BUILT_SOURCES breaks make distclean
Date: Mon, 2 Jul 2001 14:38:09 +0200
User-agent: Mutt/1.3.18i

Hi,

My problem looks like this:

In one of the project's directories BUILT_SOURCES are used. They are generated
by means of a custom utility program which is built in the same directory
through noinst_PROGRAMS. This utility program includes the global autoconf
config header (named conf.h).

If I make distclean, make always tries to rebuild the utility program, which
fails, because conf.h has already been deleted. After looking at the output of
make -d, I was a bit puzzled. It reported that all prerequisites for the
program were older than the existing target file, except for conf.h, which was
missing. Then it concluded that it needed to rebuild the target. I guess that
was because the generated dependency list for the program mentions conf.h as a
dependency of the program, and later a line reading 'conf.h:', causing make to
think it wouldn't need to do anything in order to rebuild conf.h.

What can I do? I don't want the program to be rebuilt on make distclean. Hope
you can help.

FYI, the project is Mesa3D, the relevant files, relative to project root, are
  conf.h
  src/X86/Makefile.am
  src/X86/matypes.h      # This file is generated...
  src/mtypes.h           # ...from this file...
  src/X86/gen_matypes    # ...by this program...
  src/X86/gen_matypes.c  # ...which is compiled from this file.
  src/X86/.deps/gen_matypes.P

You can access the source files through:
    http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/mesa3d/Mesa/

Best regards,
Sven

-- 
"Would the All-Seeing Eye please look in my direction?"
 [ KeyID........: 0xC297FEAB ]
 [ Fingerprint..: FEA5 0F93 7320 3F39 66A5  AED3 073F 2D5F C297 FEAB ]



reply via email to

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