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.

Bug 111812 - Make is called instead of gmake for makefile based project
Summary: Make is called instead of gmake for makefile based project
Status: CLOSED INVALID
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Thomas Preisler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-02 18:59 UTC by Alexander Pepin
Modified: 2007-11-08 15:42 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Pepin 2007-08-02 18:59:52 UTC
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.
Comment 1 Thomas Preisler 2007-08-06 17:27:34 UTC
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.