test/Makefile
branchlocal_cpptest
changeset 2642 7dbfc6c3f3c8
parent 2639 60be0da624a6
child 2644 271d7a25c8d3
     1.1 --- a/test/Makefile	Wed May 02 11:07:57 2018 +0200
     1.2 +++ b/test/Makefile	Wed May 02 16:59:14 2018 +0200
     1.3 @@ -6,6 +6,8 @@
     1.4  
     1.5  include ../default.conf
     1.6  
     1.7 +PY_ENV := $(shell command -v python3 2> /dev/null)
     1.8 +
     1.9  HERE:=$(CURDIR)
    1.10  TEST_HOME=$(HERE)/pEp_test_home
    1.11  
    1.12 @@ -81,11 +83,19 @@
    1.13  
    1.14  CPPFLAGS += $(INC_FLAGS) -MMD -MP
    1.15  
    1.16 -all: $(TARGET) test_home_
    1.17 +all: suitemaker $(TARGET) test_home_
    1.18  	
    1.19  $(TARGET): $(OBJS)
    1.20  	$(CXX) $(CPPFLAGS) $(LDFLAGS) $(OBJS) $(LDFLAGS) $(LDLIBS) -o $@
    1.21  
    1.22 +.PHONY: suitemaker
    1.23 +suitemaker:
    1.24 +ifndef PY_ENV
    1.25 +	@echo "WARNING: Can't find python3 - this is fine unless you're adding test suites. If so, please install python3."
    1.26 +else
    1.27 +	$(PY_ENV) gensuitemaker.py
    1.28 +endif
    1.29 +		
    1.30  .PHONY: test_home_
    1.31  test_home_: 
    1.32  	mkdir -p $(TEST_HOME)