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 5949625
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:16:35+00:00 2026-05-22T17:16:35+00:00

Here is the context : I am working on a makefile to create a

  • 0

Here is the context :

I am working on a makefile to create a .h at every build, including another makefile that will use this header. I can’t edit the second one.

Using a target all depending on my file, it compiles the first time, creating the missing MyHeader.h. The problem is, when I recompile, the header is not regenerated…

My makefile looks like this :

all: myHeader.h

myHeader.h:
    scriptToBuildMyHeader.sh

include obscureAndPrivateMakefile.make

I also tried with a .phony target at the beginning. Same result : once created, it won’t be regenerated at every build.

PS : I can’t call a script before make.

Do some makfile-Masters have any ideas how to deal with that ?

Thanks!

  • 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-22T17:16:36+00:00Added an answer on May 22, 2026 at 5:16 pm

    Because myHeader.h has no dependencies, it will never be rebuilt once it exists. You can work around this by creating a dependency from myHeader.h to a phony target, eg:

    forcebuild:
        # dummy; do nothing and don't create this file
    .PHONY: forcebuild
    myHeader.h: forcebuild
       scriptToBuildMyHeader.sh
    

    This will however slow down your build considerably, as the header (and any source files including it) will need to be rebuilt every time.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a function that will return a context menu for use within
I'd like to know why setimout(fun(),time) is not working here: Context: This shows a
Here is the code I use to draw: - (void) drawSomething { CGContextRef context
I was reading this article by Brandon Aaron here , about how jquery context
Here's some context: I'm working on an assignment to collapse an edge in a
Here i make 5 Tab buttons that are working proper but now i want
Working inside the context of an ASP.NET application I am creating a page that
I've got a problem here with an MSI deployment that I'm working on (using
The context: I am working on an app that maintains a list of contacts
Context I'm working on a project that I'd like to make more dynamic with

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.