[PATCH] Use AC_SUBST_FILE to replace @DEPEND@ with contents of .depend
Thorsten Glaser
t.glaser at tarent.de
Thu Aug 12 08:59:51 AEST 2021
On Thu, 12 Aug 2021, Damien Miller wrote:
> #@DEPEND@ is on a line of its own
>
> AC_SUBST_FILE requires @DEPEND@ to appear without the '#'
Ah, ouch.
Hmmm. I tried this, working in gmake, first…
-----BEGIN cutting here may damage your screen surface-----
love:
@echo not war
DEPEND1=\
@DEPEND@
DEPEND2=$(DEPEND1:@DEPEND@=)
$(DEPEND2)
-----END cutting here may damage your screen surface-----
… but nmake.exe and mirmake don’t like it. However, they do like this…
-----BEGIN cutting here may damage your screen surface-----
love:
@echo not war
DEPEND1=@BACKSLASH@\
@DEPEND@
-----END cutting here may damage your screen surface-----
… which also works with pmake (bmake (NetBSD-derived) for GNU) and gmake.
$ sed -e 's!@BACKSLASH@!\\!' -e 's!^@DEPEND@!foo: love!' <z.mk >w.mk
$ vsdevcmd
[…]
C:\misc\mk>nmake /nologo -f z.mk
not war
C:\misc\mk>nmake /nologo -f w.mk
not war
C:\misc\mk>nmake /nologo -f z.mk foo
NMAKE : fatal error U1073: don't know how to make 'foo'
Stop.
C:\misc\mk>nmake /nologo -f w.mk foo
not war
This is assuming we may have @BACKSLASH@ not on a line of its own.
bye,
//mirabilos
--
Infrastrukturexperte • tarent solutions GmbH
Am Dickobskreuz 10, D-53121 Bonn • http://www.tarent.de/
Telephon +49 228 54881-393 • Fax: +49 228 54881-235
HRB AG Bonn 5168 • USt-ID (VAT): DE122264941
Geschäftsführer: Dr. Stefan Barth, Kai Ebenrett, Boris Esser, Alexander Steeg
*************************************************
Mit dem tarent-Newsletter nichts mehr verpassen: www.tarent.de/newsletter
*************************************************
More information about the openssh-unix-dev
mailing list