aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile26
1 files changed, 12 insertions, 14 deletions
diff --git a/Makefile b/Makefile
index 5f44fee..f9998fb 100644
--- a/Makefile
+++ b/Makefile
@@ -1,22 +1,20 @@
.POSIX:
.SUFFIXES:
+HARE = hare
+HAREFLAGS = -lSDL2 -R
-LIBS=-lc -lSDL2_image -lSDL2_mixer -lSDL2
+DESTDIR =
+PREFIX = /usr/local
-demo:
- hare build $(LIBS) cmd/demo
+all: hare-chip8
-run:
- hare run $(LIBS) cmd/demo
+hare-chip8:
+ $(HARE) build $(HAREFLAGS) -o $@ .
-clean:
- rm -rf docs demo
+check:
+ $(HARE) test $(HAREFLAGS)
-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
+clean:
+ rm -f hare-chip8
-.PHONY: clean demo docs run
+.PHONY: all check clean