Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9234391
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T06:46:43+00:00 2026-06-18T06:46:43+00:00

I am making a Netbeans C++ project with an existing GNUmakefile. I went to

  • 0

I am making a Netbeans C++ project with an existing GNUmakefile. I went to File -> New Project -> C/C++ with Existing Sources and selected the folder with my current files (including the GNUmakefile).

However, when I run my app, I get the following error.

make: Makefile: No such file or directory
make: *** No rule to make target `Makefile'. Stop.

BUILD FAILED (exit value 2, total time: 67 ms)

I suspect that my Makefile is named “GNUmakefile”, which differs from “Makefile.” However, I do not want to rename “GNUmakefile,” since I am working on this project with others who want to keep it the same.

Is that why Netbeans complains about my GNUmakefile? How can I tell Netbeans to use GNUmakefile instead?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T06:46:44+00:00Added an answer on June 18, 2026 at 6:46 am

    It looks like you must be invoking make as make -f Makefile, so you are explicitly (whether you realize it or not) saying to use a makefile called Makefile. Otherwise, GNU make would happily use GNUmakefile:

    $ ls
    GNUmakefile
    $ cat GNUmakefile
    all: ; @echo done
    $ make
    done
    $ make -f Makefile
    make: Makefile: No such file or directory
    make: *** No rule to make target `Makefile'.  Stop.
    

    Note that you only get the error you reported in the last case. So you just need to change how you are invoking GNU make. Alternatively you could symlink Makefile to GNUmakefile:

    $ ln -s GNUmakefile Makefile
    $ gmake -f Makefile
    done
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am current making some small JS game in Netbeans and I have started
I'm working on a project that uses NetBeans to generate the ANT build files.
I am making a Java Desktop Application using Netbeans. I am new to Desktop
I'm making a GUI project in NetBeans. I have a JFrame and 3 JPanels.
I'm making a server-client application project in netbeans. I made some Jpanel, and some
I m making Desktop Application in netbeans plpatform in java swing.when i run my
I am making text editor in netbeans and have added jMenuItems called Copy,Cut &
I am using Java Netbeans GUI Builder for making GUI. I want to give
Making a new site but something is happening to it in IE8. The social
Making a new site but something is happening to it in IE. I've purchased

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.