> Hi, > > i often use "rm -f" OR "cmd /C del /Q" to delete files. > > In a portable Makefile i have to set that command conditionally, > depending on the OS, which leads to the problem to determine > the underlying OS. Is there a bullet-proof way to determine > it? Environment variables could be set not properly or also > not at all set. Also, i can't set it for every command.
in this case it might be simpler to check if these commands are available and not bother checking which OS you actually have. Another simple alternative is to mandate an environment variable and simply fuss at the users if it is not set. I doubt there is something like a general bulet prof OS-detection that would stay upwards compatible. hofrat _______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
