aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian <sebastian@sebsite.pw>2022-04-21 15:57:13 -0400
committerDrew DeVault <sir@cmpwn.com>2022-04-23 11:08:26 +0200
commit6b13ff0b265649746e1d66a1a174d633b551518c (patch)
tree24f8719fcab21117caf50bec1d14996cafe7d691
parentUse def for SDL_INIT_* (diff)
downloadhare-chip8-6b13ff0b265649746e1d66a1a174d633b551518c.tar.gz
Makefile: add docs target
Signed-off-by: Sebastian <sebastian@sebsite.pw>
-rw-r--r--.gitignore1
-rw-r--r--Makefile9
2 files changed, 9 insertions, 1 deletions
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