]> www.infradead.org Git - users/dwmw2/openconnect.git/commit
Fix installer deps
authorDavid Woodhouse <dwmw2@infradead.org>
Mon, 29 Mar 2021 16:44:21 +0000 (17:44 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Mon, 29 Mar 2021 21:49:45 +0000 (22:49 +0100)
commitf89351b6dbc5f8fc03e516d851ddca965747a586
tree4a664e2afe022470c802cc27f92d98bbe3e04366
parente4b12e0a39b328730895847b8b76214c986a0a8f
Fix installer deps

Just including .openconnect.exe.d from the main Makefile means it always
has to be up to date. Which means we always have to *build* openconnect,
even if it was just invoked for 'make clean'. That's bogus.

So shift the DLL dependency tracking out into its own Makefile, to be
invoked recursively. Much as I hate recursive make in the general case,
this is one of the few cases where it makes sense.

The automatic dependencies weren't working very well anyway, as it was
happy to 'discover' openconnect.exe and libopenconnect-5.dll in the MinGW
sysroot instead of using the locally built ones, *and* libtool messes up
the filenames so you can't just depend on .libs/openconnect.exe anyway.

Fix up $(DISTCLEANFILES) to be a bit more complete while we're at it.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Makefile.am
Makefile.dlldeps [new file with mode: 0644]