automake
[Top][All Lists]
Advanced

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

Re: Dependency problem (with win32 resource file and generated header)


From: Ralf Wildenhues
Subject: Re: Dependency problem (with win32 resource file and generated header)
Date: Wed, 5 Jan 2011 07:38:49 +0100
User-agent: Mutt/1.5.20 (2010-08-04)

Hello Jef,

* Jef Driesen wrote on Tue, Jan 04, 2011 at 09:54:15PM CET:
> In a project of mine, I generate a header file which contains the
> GIT commit sha1. It's generated using these rules:

> This works very well, but I also have a windows resource file to
> include a version resource in the dll. I build the resource file
> with libtool using these rules.
> 
> libdivecomputer_la_SOURCES += libdivecomputer.rc
> 
> .rc.lo:
>       $(AM_V_GEN) $(LIBTOOL) --silent --tag=RC --mode=compile $(RC) $< -o $@
> 
> The libdivecomputer.rc file is generated from a
> libdivecomputer.rc.in from configure.ac, and it also includes the
> revision.h file for the GIT commit.
> 
> This also works well, except that resource file doesn't get
> recompiled when the revision.h file is changed. How can I fix this?

Add the line

libdivecomputer.lo: revision.h

as your RC compiler statement doesn't do automatic dependency tracking.

Cheers,
Ralf



reply via email to

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