Makefile

changeset 224
93e0e89496fe
parent 214
31d73d150c76
equal deleted inserted replaced
223:e2519b3dd5e7 224:93e0e89496fe
34 cd src && $(MAKE) 34 cd src && $(MAKE)
35 35
36 tests: $(BUILDDIR) $(BUILDDIR)/libchess$(LIB_EXT) FORCE 36 tests: $(BUILDDIR) $(BUILDDIR)/libchess$(LIB_EXT) FORCE
37 cd test && $(MAKE) 37 cd test && $(MAKE)
38 38
39 # only to be called specifically - not included in "all" target
40 # we don't want to require that CXX even exists
41 test-cpp: test/test.cpp
42 test -n '$(CXX)' && $(CXX) -o /dev/null -Isrc -c $<
43
39 check: tests FORCE 44 check: tests FORCE
40 $(BUILDDIR)/run-tests 45 $(BUILDDIR)/run-tests
41 46
42 $(BUILDDIR): 47 $(BUILDDIR):
43 $(MKDIR) $(MKDIRFLAGS) $(BUILDDIR) 48 $(MKDIR) $(MKDIRFLAGS) $(BUILDDIR)

mercurial