[FFmpeg-devel] distclean and depend
matthieu castet
castet.matthieu
Sun Jun 22 14:57:50 CEST 2008
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].
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
>
> [1] http://www.gnu.org/software/make/manual/make.html#Goals
>
More information about the ffmpeg-devel
mailing list