This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: libiberty Makefile
- To: nathan at cs dot bris dot ac dot uk
- Subject: Re: PATCH: libiberty Makefile
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Mon, 25 Oct 1999 22:24:20 -0600
- cc: egcs-patches at egcs dot cygnus dot com
- Reply-To: law at cygnus dot com
In message <38104954.C25A9AC0@acm.org>you write:
> Hi,
> the attached patch to libiberty's Makefile.in allows one to
> `make maintainer-clean'. Currently the Makefile contains stuff like
>
> distclean: clean distclean-subdir
> ...whatever
> maintainer-clean: distclean maintainer-clean-subdir
> ...whatever
>
> this means the subdir's distclean rule is run before the subdir's
> maintainer-clean rule. Unfortunately distclean removes the subdir's
> Makefile. Thus a make maintainer-clean at the toplevel dies.
>
> This patch adds a SUBDIR make var which contains the subdirs to
> recurse into, and then explicitly dinks it to "" before
> recursively making clean. The subdir's makefile chains
> maintainer-clean to distclean etc, as one would expect. With this
> patch, a toplevel maintainer-clean completes.
>
> IYR, I installed the following for the same problem in gcc's Makefile
> Wed Sep 22 16:12:40 BST 1999 Nathan Sidwell <nathan@acm.org>
This is fine if you add a small comment indicating why this hackery is
needed.
jeff