> Date: Thu, 24 May 2012 10:37:36 +0200
> From: Mason <[email protected]>
> CC: Eli Zaretskii <[email protected]>
> 
> But your remark doesn't address my main question: how do people
> create this kind of "portable" (GNU) makefile?
> 
> Right now, I need the test to set the RM command.
> 
> In Cygwin, I set RM = rm -f; In DOS, I set RM = del

is that the only issue that needs to be "portable", i.e. the different
commands?  If not, what other issues are there?

Anyway, what I would suggest is to ask users tell explicitly which
environment to use, like this:

   make foo ENV=Cygwin

Then you could test the value of ENV inside the Makefile.  I don't
think relying on predefined environment variables, let alone their
case-sensitivity, is robust enough.

_______________________________________________
Help-make mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-make

Reply via email to