Skip to content

Commit

Permalink
make check now builds and runs test (as in Makefile.win)
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.r-project.org/R/trunk@87514 00db46b3-68df-0310-9c12-caf00c1e9a41
  • Loading branch information
maechler committed Jan 2, 2025
1 parent 5307acb commit e921c6e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/nmath/standalone/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -86,16 +86,15 @@ all: Makefile inc static shared
inc: Makefile
(cd ../../include; $(MAKE) Rmath.h)

## can't run test, as that depends on OS-specific way to set library path.
## clean is useful, but forces a remake each time which MM did not want
#check: all # clean

check:
@rm -f check.log
@if test -n "${TEST_MC_CORES}"; then \
$(MAKE) -j ${TEST_MC_CORES} all > check.log 2>&1; \
$(MAKE) -f test >> check.log 2>&1; \
else \
$(MAKE) all > check.log 2>&1; \
$(MAKE) all test > check.log 2>&1; \
fi
@$(ECHO) "check output can be found in src/nmath/standalone/check.log"

Expand Down Expand Up @@ -133,8 +132,8 @@ $(libRmath_la): $(libRmath_la_OBJECTS)
$(DYLIB_LINK) -o $@ $(libRmath_la_LDFLAGS) $(libRmath_la_OBJECTS) $(LIBM)

test: $(srcdir)/test.c
$(CC) -o $@ $(ALL_CPPFLAGS) $(ALL_CFLAGS) $(srcdir)/test.c \
-L. -lRmath $(LIBM)
$(CC) -o $@ $(ALL_CPPFLAGS) $(ALL_CFLAGS) $(srcdir)/test.c -L. -lRmath $(LIBM)
./$@

install: installdirs install-header @WANT_R_FRAMEWORK_FALSE@ install-pc
@WANT_R_FRAMEWORK_FALSE@ @!(test -f $(libRmath_la)) || $(SHELL) $(top_srcdir)/tools/copy-if-change $(libRmath_la) $(DESTDIR)$(libdir)/$(libRmath_la)
Expand Down

0 comments on commit e921c6e

Please sign in to comment.