Defining first target
Heime <[email protected]> Thu, 21 May 2026 22:12:02 +0000
| Newsgroups | gmane.comp.gnu.make.general |
|---|---|
| Message-ID | <lVXkE8KuyVfIpLqYf5yZpE6Zd-vbFO7s9a4KSYah3CAnDlePSfXmN1Rnufr3Sxl5lPA_Zqr6jc8kuTW2Wy2tOr7XaxsUwalO0LdPXE65NPg=@protonmail.com> |
Because by default `make' will build the first target. I have the=20
first target as something to be built, even .PHONY.
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 =3D ${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 $@ $<