Skip to content

Commit

Permalink
glocode make recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
David Sheets authored and dsheets committed Mar 14, 2012
1 parent 38db3f5 commit 0251121
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion Makefile
@@ -1,11 +1,28 @@
.PHONY: all clean
.PHONY: all glocode clean

RM_ANNOT=rm -f *.annot
OCAMLBUILD=ocamlbuild -use-ocamlfind -cflag -annot
CP_ANNOT=cp _build/*.annot .

all: gloc.d.byte glol_js.d.js gloc_js.d.js

glocode: gloc_xml.d.byte
rm -rf glocode/
mkdir -p glocode/
./gloc_xml.d.byte | xsltproc - > glocode/index.html
rm -rf glocode/CodeMirror2
mkdir -p glocode/CodeMirror2/lib
mkdir -p glocode/CodeMirror2/mode
mkdir -p glocode/CodeMirror2/keymap
cp -R CodeMirror2/lib glocode/CodeMirror2/
cp -R CodeMirror2/mode glocode/CodeMirror2/
cp -R CodeMirror2/keymap glocode/CodeMirror2/
cp gloc.css glocode/
cp gloc_platform_js.js glocode/
mkdir -p glocode/_build/
make gloc_js.d.js
cp _build/gloc_js.d.js glocode/_build/

gloc_js.d.js:
${RM_ANNOT}
${OCAMLBUILD} gloc_js.d.js
Expand Down

0 comments on commit 0251121

Please sign in to comment.