1default:
2	g++ -O3 -Wall -Wextra -Werror -std=c++11 -I.. -o mustache tests.cpp
3	./mustache
4
5mac:
6	clang++ -O3 -Wall -Wextra -Werror -std=c++11 -I.. -stdlib=libc++ -o mustache tests.cpp
7	./mustache
8
9mac14:
10	clang++ -O3 -Wall -Wextra -Werror -std=c++14 -stdlib=libc++ -I.. -o mustache14 tests.cpp
11	./mustache14
12
13clang:
14	clang++ -O3 -Wall -Wextra -Werror -std=c++11 -I.. -o mustache tests.cpp
15
16# https://gcc.gnu.org/onlinedocs/gcc/Invoking-Gcov.html
17coverage:
18	g++ -std=c++11 -coverage -O0 -I.. -o mustache tests.cpp
19	./mustache
20	gcov -l tests.cpp
21# We only want coverage for mustache.hpp, so delete all the other *.gcov files
22	find . -type f -name 'tests.cpp*.gcov' ! -name 'tests.cpp##mustache.hpp.gcov' -delete
23
24xcode:
25	mkdir -p build_xcode
26	cd build_xcode && cmake -GXcode ..
27	open build_xcode/*.xcodeproj
28
29clean:
30	rm -rf mustache mustache14 build build_xcode
31	rm -rf *.gcov *.gcda *.gcno # coverage artifacts
32