From 2f826523b9ec5003c4ba696ce78df01b46e9a59d Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Tue, 20 Aug 2002 18:14:50 +0000 Subject: [PATCH] Finally found the cause of make remaking unnecessary files after complete building from scratch: when it compiles anything by combining several pattern rules (which exactly what we use), it deletes some of the intermediate files. The fix is to specify all of these files as ".SECONDARY", but beware, these special targets don't understand patterns, so we have to list the intermediates explicitly. Uff. --- build/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build/Makefile b/build/Makefile index 4544625a..151fd011 100644 --- a/build/Makefile +++ b/build/Makefile @@ -3,3 +3,5 @@ DIRS+=build obj/build/genhash: obj/build/genhash.o + +.SECONDARY: obj/build/genhash obj/build/genhash.o -- 2.39.5