This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: PATCH: libiberty Makefile


  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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]