From e3d384202af9bc2fa5d3c514ce8a31ffcf77b70c Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Thu, 27 Dec 2018 11:36:15 +0300 Subject: [PATCH] Avoid test.o rebuild on tests folder timestamp change (Makefile.direct) * Makefile.direct (tests/test.o): Remove dependency on "tests" target; execute "mkdir tests". * Makefile.direct (tests): Remove target. --- Makefile.direct | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Makefile.direct b/Makefile.direct index fb4192b..24facf4 100644 --- a/Makefile.direct +++ b/Makefile.direct @@ -192,13 +192,11 @@ specific.o pthread_support.o thread_local_alloc.o win32_threads.o: \ dbg_mlc.o gcj_mlc.o: $(srcdir)/include/private/dbg_mlc.h -tests/test.o: tests $(srcdir)/tests/test.c +tests/test.o: $(srcdir)/tests/test.c + mkdir tests || cat /dev/null $(CC) $(CFLAGS) -c $(srcdir)/tests/test.c mv test.o tests/test.o -tests: - mkdir tests - base_lib gc.a: $(OBJS) dyn_load.o $(UTILS) rm -f dont_ar_1 ./if_mach SPARC SOLARIS touch dont_ar_1 -- 2.7.4