aboutsummaryrefslogtreecommitdiff
path: root/vendor/hare-sdl2/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--vendor/hare-sdl2/Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/vendor/hare-sdl2/Makefile b/vendor/hare-sdl2/Makefile
new file mode 100644
index 0000000..5f44fee
--- /dev/null
+++ b/vendor/hare-sdl2/Makefile
@@ -0,0 +1,22 @@
+.POSIX:
+.SUFFIXES:
+
+LIBS=-lc -lSDL2_image -lSDL2_mixer -lSDL2
+
+demo:
+ hare build $(LIBS) cmd/demo
+
+run:
+ hare run $(LIBS) cmd/demo
+
+clean:
+ rm -rf docs demo
+
+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: clean demo docs run