From 6b13ff0b265649746e1d66a1a174d633b551518c Mon Sep 17 00:00:00 2001 From: Sebastian Date: Thu, 21 Apr 2022 15:57:13 -0400 Subject: Makefile: add docs target Signed-off-by: Sebastian --- .gitignore | 1 + Makefile | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 245fe5c..7568da1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ +docs/ demo !./cmd/demo/ diff --git a/Makefile b/Makefile index c6cdb28..762ebfa 100644 --- a/Makefile +++ b/Makefile @@ -9,4 +9,11 @@ demo: run: hare run $(LIBS) cmd/demo -.PHONY: demo run +docs: + mkdir -p docs/sdl2/image + haredoc -Fhtml sdl2 > docs/sdl2/index.html + haredoc -Fhtml sdl2::image > docs/sdl2/image/index.html + mkdir -p docs/sdl2/mixer + haredoc -Fhtml sdl2::mixer > docs/sdl2/mixer/index.html + +.PHONY: demo docs run -- cgit v1.2.3