We have a Makefile for compiling a network interface's driver. When calling the Makefile in an Ubuntu 9.04 installation, we need to call just 'make'. However, when calling the Makefile in an Ubuntu 10.04 installation, we need to call 'sudo -s make'.
In Ubuntu 9.04, if we call 'sudo -s make', the compilation fails. And in Ubuntu 10.04, if we call 'make' the compilation also fails.
Although the compilation can be carried out in both versions of Ubuntu by either issuing or not issuing the 'sudo -s' bit, we would like to have a single .sh script that calls the Makefile successfully regardless of which version of Ubuntu it is running on. Are there any differences in the way that sudo -s is treated in 9.04 compared to 10.04? And if there are, what is the best solution for ensuring that both versions are catered for in one single .sh script when calling make?