gwift_old/Makefile

18 lines
547 B
Makefile

# Makefile for gwift
#
# User-friendly check for coverage
ifeq ($(shell which coverage >/dev/null 2>&1; echo $$?), 1)
$(error The 'coverage' command was not found. Make sure you have coverage installed)
endif
.PHONY: help coverage
help:
@echo " coverage to run coverage check of the source files."
coverage:
cd src; coverage run --rcfile='../.coveragerc' --source='.' manage.py test;
cd src; coverage report --rcfile='../.coveragerc';
cd src; coverage html --rcfile='../.coveragerc';
@echo "Testing of coverage in the sources finished."