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

  • SEARCH
  • Home
  • 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 7012339
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:14:35+00:00 2026-05-27T22:14:35+00:00

I cannot figure out why make is giving me this. I run make clean;

  • 0

I cannot figure out why make is giving me this. I run “make clean; make” then “make install” and I get a “make: Nothing to be done for `install’.” message. Here is my install target:

$(phony install): $(OBJFILES)
    @$(shell cp $(OBJFILES) ../../)

I changed it from using a “.PHONY: install” to “$(phony install)” because I saw someone online who said that was also a way to do phony targets, and I was stumped. To be honest, I’m rather new to writing my own Makefiles, but it seems simple enough. I’m sure I’m missing something obvious and I will feel dumb here in a second. 😛

Okay, weird thing. It seems that make is executing the install target, but is still saying “nothing to be done” this is weird. Also, if I do “make clean; make install” it installs just fine and doesn’t give me any messages like that. So, it is only when the object files need rebuilt that “install” is seeing that it needs to be run. That doesn’t make sense. I should be able to run “make; make install”!

  • 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-05-27T22:14:36+00:00Added an answer on May 27, 2026 at 10:14 pm

    You don’t need to use $(shell ...) inside a recipe, instead write command as it is. Also, I’ve never heard about $(phony ...), and I guess that it is not valid (try to run Make with --warn-undefined-variables option).

    .PHONY: install
    install: $(OBJFILES)
        @cp $^ ../../
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I cannot figure out why I get this error during check-in. I checked in
I read this post , but I cannot figure out how to make what
I cannot figure out how to make a C# Windows Form application write to
I cannot figure out how to convert this code from C# to VB.net. It
I cannot figure out how to get rid of errors that should not be
I look in documentation and source code but cannot figure out how to get
I cannot figure out how to make all cells in a table draggable, except
Short version of my problem: I cannot figure out how to make the action
I cannot figure out how to make a parent, child (by an id) that
SQL server has support for XML, but I cannot figure out how to get

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.