I did this with the considerable help of my friends.
Create a Bash script called 'nppmake'. I saved it in c: \ GNUStep. The file should contain the following:
#! / Ben / bash
cd $ 1 do
Create a DOS batch file named "nppmake.bat" which I saved again in c: \ GNUStep. This file contains the following:
sh --login -i C: \ GNUstep \ nppmake% 1
In N ++, go to the "Plugins> NppExec> Run" section and enter the following:
C: \ GNUstep \ nppmake.bat $ (CURRENT_DIRECTORY)
Click "Save" and call the script "make".
- In 'Plugins> NppExec> Advanced Options ...' create a menu item that I called 'Build' and associate it with a script called make (I am a Visual Studio developer, build โfeels more natural to me). Make sure that the "Place in the macro submenu" checkbox is selected.
- You may need to restart N ++ at this point, but then all that remains to be done is to add a keyboard shortcut. Go to Settings> Shortcut> Plugin Commands and find Build. I assigned "Ctrl-Shift-B", this is the same as VS.
You are done. Now open the file in the Objective-C project that has the GNUmakefile and press "Ctrl-Shift-B". The NppExec window reports any errors or, hopefully, a successful build!
source share