Re: Stop variable interpreted as target

Heime <[email protected]> Sun, 21 Jun 2026 21:54:29 +0000
Newsgroups gmane.comp.gnu.make.general
Message-ID <ro6AlZNVzLRwQWymr0ip0KBni11QKTgSJpCOyEHxLPbTEYVWl1MdzaEk5aWOAeHPkuqfxJW51N3YFIVA2Ehz1ckQIgdk8Y7DsCYqUc3n52o=@protonmail.com>
I could not append hopc like this

.PHONY: trlfn ndf

trlfn: hopc +=3D --transliterate-file-names
ndf: hopc +=3D --node-files


because of this error

make -f antares.mk split=3Dnode trlfn ndf  sm
hopc +=3D --transliterate-file-names
make: hopc: No such file or directory
make: *** [antares.mk:308: trlfn] Error 127





On Monday, June 22nd, 2026 at 9:15 AM, Heime <[email protected]> w=
rote:

>=20
> In my makefile I accumulate option values in variable hopc.
>=20
> Running the makefile as follows results in
> make -f antares.mk split=3Dnode trlfn ndf  sm
> make: *** No rule to make target 'trlfn'.  Stop.
>=20
> How can I avoid the problem with trlfn and ndf?
>=20
> hopc :=3D
>=20
> ifneq ($(css),)
> =09hopc +=3D --css-include=3D$(css)
> endif
>=20
> ifneq ($(css-ref),)
> =09hopc +=3D --css-ref=3D$(css-ref)
> endif
>=20
> ifneq ($(links),)
> =09hopc +=3D --internal-links=3D$(links)
> endif
>=20
> ifneq ($(split),)
> =09hopc +=3D --split=3D$(split)
> endif
>=20
> ifneq ($(trlfn),)
> =09hopc +=3D --transliterate-file-names
> endif
>=20
> ifneq ($(ndf),)
> =09hopc +=3D --node-files
> endif
>=20
> $(hmldir)/antares.html: $(srcs) | $$(@D)
> =09makeinfo $(opts) --html $(hopc) -o $@ $<
>=20
>=20
>=20
>