forked from 3b/cl-opengl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
25 lines (19 loc) · 1.05 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# -*- Mode: Makefile; tab-width: 3; indent-tabs-mode: t -*-
note:
@echo "This Makefile is only for rebuilding the low-level bindings from the"
@echo "official .spec file, it isn't needed for normal use. See tools/README.md"
@echo "for instructions for updating bindings."
# allow overriding location of sbcl, for example
# CL="~/lisp/clbuild/clbuild --implementation sbcl lisp" make funcs
CL ?= sbcl --noinform --disable-debugger
bindings:
@$(CL) --no-userinit --script "tools/generate-bindings.lisp"
# fixme: probably should grab xml file with svn instead of wget?
specs:
cd spec && wget -N https://raw.githubusercontent.com/KhronosGroup/OpenGL-Registry/master/xml/gl.xml
cd spec && curl "https://api.github.com/repos/KhronosGroup/OpenGL-Registry/commits/heads/master" -o github-info.json
clean:
find . -name ".fasls" | xargs rm -rf
find . \( -name "*.dfsl" -o -name "*.fasl" -o -name "*.fas" -o -name "*.lib" -o -name "*.x86f" -o -name "*.ppcf" -o -name "*.nfasl" -o -name "*.fsl" \) -exec rm {} \;
.PHONY: bindings specs clean note
# vim: ft=make ts=3 noet