> From: Paul Smith <psm...@gnu.org>
> Cc: Eli Zaretskii <e...@gnu.org>, bug-make <bug-make@gnu.org>
> Date: Mon, 29 Apr 2013 19:53:26 -0400
> 
> I'm not saying make_host is wrong.  I do wish there was something more
> generic available (maybe in addition) that let people know "posix" vs
> "windows" vs. "vms" vs. "amiga" vs. whatever, and avoid a lot of
> makefiles with "if linux or freebsd or openbsd or aix or hpux or ...".
> 
> But I guess you get into sticky areas: is MacOS "posix" even though it
> has so many differences from stock BSD?  Are "windows" and "msdos" the
> same?  What about "msys" vs. "cygwin" etc.?
> 
> >From the standpoint of writing a makefile I guess what you really want
> to know is, does this environment have a POSIX shell environment, or
> Windows command.com, or VMS shell (whatever that is)?  Or something else
> (I'm not so familiar with all the variations on the Windows side)

I think the issues you raise are in addition to make_host.  make_host
should just say "ms-windows" or "ms-dos" (_not_ the same) or "cygwin"
or "gnu/linux" etc.  This is enough to determine things like $EXEEXT
etc.

We could then make more feature variables, like posix etc., or maybe a
system_features variable that is a list, which could be used to
fine-tune the Makefile.  (For knowing what shell is available one can
simply use $SHELL, so I'm not sure anything else is needed.)

And what about make_version?

_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to