This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Steps to reproduce: - configure "Tools->Options->C/C++ Settings" to use gmake as a Make Command - create any makefile based project (e.g. LiteSQL) - try to clean or build the project Result: Build failed with a message: Running "/usr/sfw/bin/gmake -f litesql_1-Makefile.mk CONF=Default clean" in /export/home/tester/pep/nb_working/litesql_1 /usr/sfw/bin/gmake -f nbproject/Makefile-Default.mk SUBPROJECTS= .clean-conf gmake[1]: Entering directory `/export/home/tester/pep/nb_working/litesql_1' cd ../../litesql-0.3.1 && make -f Makefile clean /bin/sh: make: not found gmake[1]: *** [.clean-conf] Error 1 gmake[1]: Leaving directory `/export/home/tester/pep/nb_working/litesql_1' gmake: *** [.clean-impl] Error 2 Clean failed. Exit value 2.
It is not a defect! When you specify gmake in the Build Tools option panel, it means only the CND project will get build using 'gmake' and not necessarily the existing project. Which make the user wants to use to build the existing project with is specified in the Build Action panel in the project wizard (or in the project's properties). Before 5.5.1 these two tools were connected ($(MAKE) was generated in the makefile), but a high-priority bug was filed (I don't have the IZ) when you used dmake and the existing project was written for GNU make which make the existing project fail to build. The default make tool to use when building existing projects is now 'make'. In your case you will need to specify 'gname' in the wizard or change the make command to gmake in the project's properties.