diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2021-10-30 15:19:26 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2021-10-30 15:19:26 +0300 |
commit | 0d4dbe08d60b1f5b06ee42e0102ff96c9cf6c3bb (patch) | |
tree | 003205d7e34fae21422962c387e448596fa1af8c /Makefile.direct | |
parent | 483814a141027913c385cad52b2e8e6449eba934 (diff) | |
download | bdwgc-0d4dbe08d60b1f5b06ee42e0102ff96c9cf6c3bb.tar.gz |
Add check-deps goal to Makefiles to build the tests but not execute them
* Makefile.direct (check-deps, check-cpp-deps): Document goals (add
comment).
* Makefile.direct (check-cpp-deps, check-deps): New goal.
* NT_MAKEFILE (check-deps): Likewise.
* OS2_MAKEFILE (check-deps): Likewise.
* SMakefile.amiga (check-deps): Likewise.
* Makefile.direct (check-cpp): Depend on check-cpp-deps instead of
test_cpp.
* Makefile.direct (check): Depend on check-deps instead of cordtest,
gctest, setjmp_test, test_cpp.
* NT_MAKEFILE (check): Depend on check-deps instead of gctest.exe,
test_cpp.exe, cordtest.exe, de.exe.
* OS2_MAKEFILE (check): Depend on check-deps instead of gctest.exe and
cordtest.exe.
* SMakefile.amiga (check): Depend on check-deps instead of setjmp_t,
gctest, cordtest.
Diffstat (limited to 'Makefile.direct')
-rw-r--r-- | Makefile.direct | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Makefile.direct b/Makefile.direct index c74660c1..38c849c9 100644 --- a/Makefile.direct +++ b/Makefile.direct @@ -8,7 +8,9 @@ # cords - builds cord.a only (heavyweight strings library) # check - same as "all" but also prints porting information, and runs some # tests of collector and cords +# check-deps - same as check but do not run the tests # check-cpp - builds gc.a, gccpp.a and gctba.a, runs C++ only test +# check-cpp-deps - same as check-cpp but do not run the test # cord/de - builds dumb editor based on cords. ABI_FLAG= @@ -238,7 +240,9 @@ test_cpp$(EXEEXT): $(srcdir)/tests/test_cpp.cc $(srcdir)/include/gc_cpp.h \ ./if_mach HP_PA HPUX $(CXX) $(CXXFLAGS) -o test_cpp $(srcdir)/tests/test_cpp.cc gc.a gccpp.a -ldld `./threadlibs` ./if_not_there test_cpp$(EXEEXT) || $(CXX) $(CXXFLAGS) -DGC_NOT_DLL -o test_cpp$(EXEEXT) $(srcdir)/tests/test_cpp.cc gc.a gccpp.a `./threadlibs` -check-cpp: test_cpp$(EXEEXT) +check-cpp-deps: test_cpp$(EXEEXT) + +check-cpp: check-cpp-deps ./test_cpp c++-t: c++ test_cpp$(EXEEXT) @@ -395,7 +399,10 @@ setjmp_test$(EXEEXT): $(srcdir)/tools/setjmp_t.c $(srcdir)/include/gc.h \ $(UTILS) $(CC) $(CFLAGS) -o setjmp_test$(EXEEXT) $(srcdir)/tools/setjmp_t.c -check: cordtest$(EXEEXT) gctest$(EXEEXT) setjmp_test$(EXEEXT) test_cpp$(EXEEXT) +check-deps: cordtest$(EXEEXT) gctest$(EXEEXT) setjmp_test$(EXEEXT) \ + test_cpp$(EXEEXT) + +check: check-deps ./setjmp_test ./gctest ./cordtest |