Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Calling an executable by a different name

Tags:

windows

I installed QT for windows, and it uses mingw. There it has this mingw32-make, but I would like to be able to just call make whenever I want to use it.. as it is rather long to type that. Anyone know how to do this?

I know I can make a copy of mingw32-make, and rename it make in order to get something to work, but that is just so lame. Is there a more elegant way.

Ted.

like image 337
Flethuseo Avatar asked Oct 25 '25 00:10

Flethuseo


1 Answers

Create a batch file on your PATH (I put mine in c:\MinGW\bin) called make.bat with the following contents:

mingw32-make %*

The %* enables you to pass arguments to the mingw32-make command.

Thanks to a2j for pointing me in the right direction here.

like image 93
donturner Avatar answered Oct 26 '25 15:10

donturner