[Top][All Lists]

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

Re: Makefile.static in EXTRA_DIST vanishes on make distcheck

From: Stefano Lattarini
Subject: Re: Makefile.static in EXTRA_DIST vanishes on make distcheck
Date: Sat, 12 Nov 2011 09:34:57 +0100
User-agent: KMail/1.13.7 (Linux/2.6.30-2-686; KDE/4.6.5; i686; ; )

On Thursday 10 November 2011, Holger Hans wrote:
> Hi,
Hello Holger.

> the project I am working on invokes another Makefile (to build a Linux kernel
> module), I have placed this Makefile in the EXTRA_DIST but somehow on make
> distcheck the Makefile.static is gone
No, it's not gone -- the problem is sightly sublter: "make distcheck"
performs a *VPATH build*, and in such a build the Makefile.static won't
be placed in the builddir (i.e., the current directory) as usual, but
rather in the srcdir.  But ...

> and the cleaning fails. I have created a
> minimal example and attached it to this email.
> EXTRA_DIST = Makefile.static
> clean-local::
>       $(MAKE) -f Makefile.static clean
... this rule looks for Makefile.static in the current directory only.
And that's the problem.  You should use something like this instead:

        (MAKE) -f $(srcdir)/Makefile.static clean

For more information on VPATH builds, see:


reply via email to

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