generate SuiteMaker.cc if tests are added or removed sync
authorVolker Birk <vb@pep-project.org>
Mon, 08 Apr 2019 11:26:23 +0200
branchsync
changeset 3466d85716655647
parent 3459 39681db00826
child 3467 704874d7e519
generate SuiteMaker.cc if tests are added or removed
test/Makefile
     1.1 --- a/test/Makefile	Mon Apr 08 10:55:02 2019 +0200
     1.2 +++ b/test/Makefile	Mon Apr 08 11:26:23 2019 +0200
     1.3 @@ -97,13 +97,15 @@
     1.4  
     1.5  .PHONY: all clean test
     1.6  
     1.7 -all: src/SuiteMaker.cc
     1.8 +all:
     1.9 +	make .suitemaker
    1.10  	make $(TARGET) .scripts
    1.11 +	touch .suitemaker
    1.12  
    1.13  %.d: %.cc
    1.14  	$(CXX) -MM $(CPPFLAGS) $(CXXFLAGS) $< | sed -e 's,\($*\)\.o[ :]*,\1.o $@: ,g' > $@
    1.15  
    1.16 -src/SuiteMaker.cc: gensuitemaker.py $(filter-out src/SuiteMaker.cc,$(SRCS))
    1.17 +.suitemaker: src
    1.18  ifndef PY_ENV
    1.19  	@echo "WARNING: Can't find python3 - this is fine unless you're adding test suites. If so, please install python3."
    1.20  else
    1.21 @@ -113,7 +115,6 @@
    1.22  	# Comma-separated list, no spaces
    1.23  	$(PY_ENV) gensuitemaker.py --exclude=$(EXCLUDE)
    1.24  endif
    1.25 -	touch .suitemaker
    1.26  endif
    1.27  
    1.28  $(TARGET): $(OBJS)