[FFmpeg-devel] distclean and depend

Måns Rullgård mans
Sun Jul 6 15:27:03 CEST 2008


Diego Biurrun <diego at biurrun.de> writes:

> On Sun, Jun 22, 2008 at 02:57:50PM +0200, matthieu castet wrote:
>> Attila Kinali wrote:
>> > On Fri, 20 Jun 2008 19:48:09 +0200
>> > matthieu castet <castet.matthieu at free.fr> wrote:
>> > 
>> > 
>> >> ifeq ($(filter distclean,$(MAKECMDGOALS)),)
>> >> -include $(DEPS)
>> >> endif
>> > 
>> > This has the problem, that running `make distclean all` will
>> > fail because the dependencies are not included. Unoftunately,
>> > even the make manual doesn't have any better solution for
>> > this[1].
>> > 
>> > [1] http://www.gnu.org/software/make/manual/make.html#Goals
>> > 
>> My solution doesn't work, but gnu one work (it will include the file).
>> Try it with :
>> ifneq ($(MAKECMDGOALS),distclean)
>> $(warning including file $(MAKECMDGOALS))
>> endif
>> ifeq ($(filter distclean,$(MAKECMDGOALS)),)
>> $(warning 2 :including file $(MAKECMDGOALS))
>> endif
>
> Is this even worth the extra complication?

I'd say no.

-- 
M?ns Rullg?rd
mans at mansr.com




More information about the ffmpeg-devel mailing list