]> mj.ucw.cz Git - libucw.git/commitdiff
Finally found the cause of make remaking unnecessary files after complete
authorMartin Mares <mj@ucw.cz>
Tue, 20 Aug 2002 18:14:50 +0000 (18:14 +0000)
committerMartin Mares <mj@ucw.cz>
Tue, 20 Aug 2002 18:14:50 +0000 (18:14 +0000)
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

index 4544625ad4e798aefb1bbff6c8747f3c8143030a..151fd0117774744a46508f39e7cc40178065357f 100644 (file)
@@ -3,3 +3,5 @@
 DIRS+=build
 
 obj/build/genhash: obj/build/genhash.o
 DIRS+=build
 
 obj/build/genhash: obj/build/genhash.o
+
+.SECONDARY: obj/build/genhash obj/build/genhash.o