From: Martin Mares Date: Tue, 20 Aug 2002 18:14:50 +0000 (+0000) Subject: Finally found the cause of make remaking unnecessary files after complete X-Git-Tag: holmes-import~1371 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=2f826523b9ec5003c4ba696ce78df01b46e9a59d;p=libucw.git 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. --- 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