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]
Other format: [Raw text]

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


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