This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: More Makefile cleanups
- From: neroden at twcny dot rr dot com (Nathanael Nerode)
- To: mark at codesourcery dot com, gcc-patches at gcc dot gnu dot org
- Date: Sat, 30 Aug 2003 15:50:59 -0400
- Subject: Re: PATCH: More Makefile cleanups
>Not at all.
>
>Instead, it would change to:
>
> $(lang_checks): check-% : $(TESTSUITEDIR)/site.exp
> ...
>
>and, for example, cp/Make-lang.in would do:
>
> lang_checks += check-g++
And *this* is the type of order dependency which should *not* be
introduced into Makefiles. It introduces hard-to-find bugs which
involves trawling through mazes of include files. No, that's not what
we want.
A non-static pattern rule would do the trick, though you'd have to avoid
naming any files 'check-*'.
check-% : $(TESTSUITEDIR)/site.exp
...
--
Nathanael Nerode <neroden at gcc.gnu.org>
http://home.twcny.rr.com/nerode/neroden/fdl.html