Hi!
> > I got a an idea how to fix this in portable fashion. The key is the order
> > of filenames the make looks for.
> > 
> > The gnu make tries GNUmakefile first, then makefile or Makefile.
> > 
> > So if we create GNUmakefile, which would include the Makefile and adds
> > the .NOTPARALLEL: target it should work both with both GNU make and any
> > other POSIX conforming make out there.
> 
> I think your idea is good. 
> But I think that the code to distinguish GNU make and other POSIX will makes
> the Makefile to be more complex.
> I do not wish to complicate the Makefile more than is necessary.
> How about using '-j1' without '.NOTPARALLEL:' option as follows.

Again the same problem as previously. The POSIX specification does not
require the -j option to exist as the standard does not take parallel
build into the account at all. And for the Open Posix part of LTP we
need to stick to the POSIX.

And looking at the POSIX spec again, the POSIX make does not even
support including files. So the only way how to fix this is to copy the
top level Makefile to GNUmakefile and add the line. :(

-- 
Cyril Hrubis
chru...@suse.cz

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to