aboutsummaryrefslogtreecommitdiff
path: root/vendor/hare-sdl2/Makefile
blob: 5f44feea93281c5330377b2a4a3f6f8f9e23ee3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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