]> Lady’s Gitweb - Shushe/commit
Re·order remakes to (again) fix restarts
authorLady <redacted>
Mon, 1 Jan 2024 20:49:15 +0000 (15:49 -0500)
committerLady <redacted>
Tue, 2 Jan 2024 18:27:04 +0000 (13:27 -0500)
commit55fc968f72857e25fcafe6088c873f5032555c79
tree2d5fdbc6cf98194362b3fd0a6b3e993db776e4ed
parent05576f88d7808054799537e89c7888e870df66bf
Re·order remakes to (again) fix restarts

In cases where `$(BUILDDIR)/dependencies` exists but
`$(BUILDDIR)/.update-types` (initially) does not, it is important to
check for dependency updates *first*, prior to checking for parser
updates. This is because when parsers are updated, the dependency file
will be deleted, causing the dependency reload recipe to activate
immediately (prior to a restart) if it hasn’t already been checked.

Having correct behaviour depend on the ordering of these recipes isn’t
ideal, but the alternative is checking whether
`$(BUILDDIR)/.update-types` was created *in the course of processing
the make·file* and disabling dependency creation until the next restart
if it had been. This sounds unbearably complex and difficult to phrase
in a readable manner.
GNUmakefile
This page took 0.048233 seconds and 4 git commands to generate.