summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2020-05-13 12:08:34 +1000
committerDamien Miller <djm@mindrot.org>2020-05-13 12:08:34 +1000
commit102d106bc2e50347d0e545fad6ff5ce408d67247 (patch)
tree6d38d3cb2644976438cfe12f3faed347fadd0e77 /Makefile.in
parent83a6dc6ba1e03b3fa39d12a8522b8b0e68dd6390 (diff)
explicitly manage .depend and .depend.bak
Bring back removal of .depend to give the file a known state before running makedepend, but manually move aside the current .depend file and restore it as .depend.bak afterwards so the stale .depend check works as expected.
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in
index 275d4dd78..7c5ed0bd6 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -350,12 +350,15 @@ depend: depend-rebuild
350 rm -f .depend.bak 350 rm -f .depend.bak
351 351
352depend-rebuild: 352depend-rebuild:
353 rm -f config.h 353 mv .depend .depend.old
354 rm -f config.h .depend
354 touch config.h .depend 355 touch config.h .depend
355 makedepend -w1000 -Y. -f .depend *.c 2>/dev/null 356 makedepend -w1000 -Y. -f .depend *.c 2>/dev/null
356 (echo '# Automatically generated by makedepend.'; \ 357 (echo '# Automatically generated by makedepend.'; \
357 echo '# Run "make depend" to rebuild.'; sort .depend ) >.depend.tmp 358 echo '# Run "make depend" to rebuild.'; sort .depend ) >.depend.tmp
358 mv .depend.tmp .depend 359 mv .depend.tmp .depend
360 rm -f .depend.bak
361 mv .depend.old .depend.bak
359 rm -f config.h 362 rm -f config.h
360 363
361depend-check: depend-rebuild 364depend-check: depend-rebuild