~evantj/hare-raylib

a04db9660069feb96489a452e412147ada8dd955 — Evan Johnston 1 year, 4 months ago db43765
Makefile: generate raymath.ha
1 files changed, 11 insertions(+), 6 deletions(-)

M Makefile
M Makefile => Makefile +11 -6
@@ 3,14 3,19 @@
LIBS=-lraylib -lglfw -lwayland-client -lffi

RAYLIB_HEADER := /usr/include/raylib.h
RAYMATH_HEADER := /usr/include/raymath.h

all: raylib/raylib.ha
all: raylib/raylib.ha raylib/raymath.ha

raylib/raylib.ha: api.json hare-raylib.py
	./hare-raylib.py api.json > raylib/raylib.ha
raylib/raylib.ha: raylib.json hare-raylib.py
	./hare-raylib.py raylib.json > raylib/raylib.ha
raylib/raymath.ha: raymath.json hare-raylib.py
	./hare-raylib.py raymath.json > raylib/raymath.ha

api.json:
	raylib_parser -i $(RAYLIB_HEADER) -f JSON -o api.json
raylib.json:
	raylib_parser -i $(RAYLIB_HEADER) -f JSON -o raylib.json
raymath.json:
	raylib_parser -d RMAPI -i $(RAYMATH_HEADER) -f JSON -o raymath.json

demo:
	hare build $(LIBS) cmd/demo


@@ 19,6 24,6 @@ heightmap:
run:
	hare run $(LIBS) cmd/demo
clean:
	rm -f raylib/raylib.ha api.json demo heightmap
	rm -f raylib/raylib.ha raylib.json raylib/raymath.ha raymath.json demo heightmap

.PHONY: clean demo run heightmap