diff options
Diffstat (limited to '')
| -rw-r--r-- | Makefile | 26 |
1 files changed, 12 insertions, 14 deletions
@@ -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 |
