Avoid test.o rebuild on tests folder timestamp change (Makefile.direct)
authorIvan Maidanski <ivmai@mail.ru>
Thu, 27 Dec 2018 08:36:15 +0000 (11:36 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 27 Dec 2018 08:36:15 +0000 (11:36 +0300)
* Makefile.direct (tests/test.o): Remove dependency on "tests" target;
execute "mkdir tests".
* Makefile.direct (tests): Remove target.

Makefile.direct

index fb4192b..24facf4 100644 (file)
@@ -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