all:
	$(CXX) -fprofile-arcs -ftest-coverage -fPIC main.cpp -o testcase

run: html

# Use $$(...) to run the ls command in the shell.
# The $(shell ...) doesn't wotk here because it's evaluated befor running the executable
html:
	./testcase
	$(GCOVR) -d --verbose --html-details --html-title="Title of report" -o coverage.html $$(ls *.gcda)

clean:
	rm -f testcase
	rm -f *.gc*
	rm -f coverage*.html coverage.css
