From 00393a40e5fdddd99c39106a0082d5f4b9b0315c Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 26 Sep 2021 16:27:19 +0300 Subject: add Doxygen docs --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 61f1cc1..163436d 100644 --- a/Makefile +++ b/Makefile @@ -83,6 +83,15 @@ install: build test: cd -- '$(call escape,$(cmake_dir))' && ctest -C '$(call escape,$(CONFIGURATION))' --verbose +xdg-open := $(shell command -v xdg-open 2> /dev/null) + +.PHONY: docs +docs: + cmake --build '$(call escape,$(cmake_dir))' --target docs +ifdef xdg-open + xdg-open '$(call escape,$(cmake_dir))/html/index.html' +endif + clang-tidy := run-clang-tidy ifeq (1,$(shell test -e /usr/share/clang/run-clang-tidy.py && echo 1)) clang-tidy := /usr/share/clang/run-clang-tidy.py -- cgit v1.2.3