automake
[Top][All Lists]
Advanced

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

Re: Generating missing depfiles by an automake based makefile


From: Jan Engelhardt
Subject: Re: Generating missing depfiles by an automake based makefile
Date: Thu, 9 Feb 2023 17:41:28 +0100 (CET)
User-agent: Alpine 2.25 (LSU 592 2021-09-18)

On Thursday 2023-02-09 22:33, Dmitry Goncharov wrote:
>
>> .Po file contents control when an .o file -- and thus also
>> the .Po file itself -- is remade.
>> If a .Po file has no practical content, there is no indication
>> that it needs to be remade.
>
>Absence of the depfile is such an indication.
>Here is a sample bash session which demonstrates how gnu make and sun
>make are able to build a missing depfile.
>
>$ ls
>hello.c  hello.h  makefile
>$ cat makefile
>all: hello.tsk
>hello.tsk: hello.o
>        gcc-10 -o $@ $^
>
>hello.o: hello.c hello.Po
>        gcc-10 -c hello.c -MD -MF hello.Po
>
>hello.Po:
>        gcc-10 -c hello.c -MD -MF hello.Po
>
>include hello.Po

This is a GNU extension. If you try this with e.g.
OpenBSD make, it will complain.



reply via email to

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