aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-03-10 12:39:04 +0500
committerEgor Tensin <Egor.Tensin@gmail.com>2022-03-10 12:48:59 +0500
commit4a13df61b92b8bf673f8a71d5fa0abf0356a4899 (patch)
tree071a3830ce0f2309e40a4bb16b7dd42018bd852f /Makefile
parentMakefile: remove stupid header, etc. (diff)
downloadwinapi-common-4a13df61b92b8bf673f8a71d5fa0abf0356a4899.tar.gz
winapi-common-4a13df61b92b8bf673f8a71d5fa0abf0356a4899.zip
add Doxygen docs
Diffstat (limited to '')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index f3a99d8..64c45fd 100644
--- a/Makefile
+++ b/Makefile
@@ -80,6 +80,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' &> /dev/null
+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