On Thu, May 21, 2026 at 3:13 PM Heime <[email protected]> wrote:
> Because by default `make' will build the first target. I have the
> first target as something to be built, even .PHONY.

Sure.  See also the .DEFAULT_TARGET special variable in the make documentation.

That said, I don't see any connection from the above to what follows here:

> Rather than this,
>
> .PHONY: TARGET
> TARGET: info html pdf dvi ps
>
> I use the following (and with directories at the start)
> Would this be the correct way to do it?
>
> infdir = ${HOME}/Opfeld/hist/build/${btnver}/docs/info
>
> .PHONY: TARGET
> TARGET: info html pdf dvi ps
>
> info: ${infdir}/antares.info
>
> .SECONDEXPANSION:  # Enable second expansion of $(@D)
>
> $(infdir)/antares.info: $(srcs) | $$(@D)
>     makeinfo $(opts) -o $@ $<

What's the question?

Philip Guenther

Reply via email to