[FFmpeg-devel] distclean and depend
Diego Biurrun
diego
Sun Jul 6 15:06:14 CEST 2008
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?
Diego
More information about the ffmpeg-devel
mailing list