[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Can changes in a makefile trigger a rebuild?
From: |
Ken Smith |
Subject: |
Re: Can changes in a makefile trigger a rebuild? |
Date: |
Fri, 19 Aug 2005 10:03:32 -0400 |
User-agent: |
Mutt/1.5.9i |
On Fri, Aug 19, 2005 at 10:00:55AM +0300, Angel Tsankov wrote:
> Can a makefile decide to rebuild a project if it (the makefile) has
> changed since the latest build?
> Note, this would probably require make to have a -M option so that
> included makefiles are also taken into account.
>
> Angel Tsankov
> address@hidden
The way to do this is to have the targets depend on the makefiles. I am
not familiar with the -M option. It is certainly not necessary here.
ALL_MAKEFILES := Makefile include.mk
target: prerequisites $(ALL_MAKEFILES)
commands
Ken