[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Always remake target

From: Casper Hornstrup
Subject: Always remake target
Date: Sat, 21 May 2005 13:30:32 +0200


I have a makefile, called makefile, and a tool that builds another makefile 
(okay, it does a little more than that), called Makefile ensures that is regenerated using 
dependencies on

Now I need to always regenerate, but only for specific goals (all 
and empty goal - i.e. default goal).

So in short. If I run "make module1", I want make to only regenerate in case one or more of its dependencies are
remade. If I run "make" or "make all", I want to always remake 
before any target that depend on it is remade.

How can this be done?

Pseudo makefile is below:

.PHONY: all
all: module1

-include tool
        # regenerate using tool

# The rest is in

.PHONY: module1
module1: module1.exe

module1.exe: $(MODULE1_OBJS)
        # build module1.exe


reply via email to

[Prev in Thread] Current Thread [Next in Thread]