Permalink
Browse files

symlink .js files since jekyll ignores _build

  • Loading branch information...
1 parent 4fdbcfc commit efdd2415559730c4121bb6e1e0ae10c70d17ea4d Jake Donham committed May 6, 2010
View
2 Makefile
@@ -45,4 +45,4 @@ examples:
github:
rsync -a --delete --exclude './' doc/ ../froc.gh-pages/doc/
- rsync -a --delete --delete-excluded --include '*/' --exclude myocamlbuild.ml --include '*.ml' --include '*.js' --include '*.html' --include '*.css' --include '*.png' --exclude '*' examples/ ../froc.gh-pages/examples/
+ rsync -a -L --delete --delete-excluded --exclude _build/ --include '*/' --exclude myocamlbuild.ml --include '*.ml' --include '*.js' --include '*.html' --include '*.css' --include '*.png' --exclude '*' examples/ ../froc.gh-pages/examples/
View
6 examples/froc-dom/bounce/Makefile
@@ -1,9 +1,11 @@
+JS=bounce.js
+
all: myocamlbuild.ml
- ocamlbuild bounce.js
+ ocamlbuild $(JS); ln -s _build/$(JS) .
clean:
ocamlbuild -clean
- rm -f myocamlbuild.ml
+ rm -f myocamlbuild.ml $(JS)
myocamlbuild.ml:
ln -s ../../../tools/myocamlbuild.ml
View
2 examples/froc-dom/bounce/index.html
@@ -4,6 +4,6 @@
</head>
<body>
<canvas id="canvas" width="500" height="500" style="border-style:solid"></canvas>
- <script src="_build/bounce.js"></script>
+ <script src="bounce.js"></script>
</body>
</html>
View
6 examples/froc-dom/clicks/Makefile
@@ -1,9 +1,11 @@
+JS=clicks.js
+
all: myocamlbuild.ml
- ocamlbuild clicks.js
+ ocamlbuild $(JS); ln -s _build/$(JS) .
clean:
ocamlbuild -clean
- rm -f myocamlbuild.ml
+ rm -f myocamlbuild.ml $(JS)
myocamlbuild.ml:
ln -s ../../../tools/myocamlbuild.ml
View
2 examples/froc-dom/clicks/index.html
@@ -7,6 +7,6 @@
<p>The button has been clicked <span id="clicks">0</span> times.</p>
<p><button type="button" id="click">Click</button></p>
<p><span id="difference"></span></p>
- <script src="_build/clicks.js"></script>
+ <script src="clicks.js"></script>
</body>
</html>
View
6 examples/froc-dom/follow-the-mouse/Makefile
@@ -1,9 +1,11 @@
+JS=follow.js
+
all: myocamlbuild.ml
- ocamlbuild follow.js
+ ocamlbuild $(JS); ln -s _build/$(JS) .
clean:
ocamlbuild -clean
- rm -f myocamlbuild.ml
+ rm -f myocamlbuild.ml $(JS)
myocamlbuild.ml:
ln -s ../../../tools/myocamlbuild.ml
View
2 examples/froc-dom/follow-the-mouse/index.html
@@ -4,7 +4,7 @@
</head>
<body id="body">
- <script src="_build/follow.js"></script>
+ <script src="follow.js"></script>
</body>
</html>
View
6 examples/froc-dom/orbit-mouse/Makefile
@@ -1,9 +1,11 @@
+JS=orbit.js
+
all: myocamlbuild.ml
- ocamlbuild orbit.js
+ ocamlbuild $(JS); ln -s _build/$(JS) .
clean:
ocamlbuild -clean
- rm -f myocamlbuild.ml
+ rm -f myocamlbuild.ml $(JS)
myocamlbuild.ml:
ln -s ../../../tools/myocamlbuild.ml
View
2 examples/froc-dom/orbit-mouse/index.html
@@ -30,6 +30,6 @@
<td><input type="text" id="blue" value="0"></td>
</tr>
</table>
- <script src="_build/orbit.js"></script>
+ <script src="orbit.js"></script>
</body>
</html>
View
6 examples/froc-dom/quickhull/Makefile
@@ -1,9 +1,11 @@
+JS=quickhull.js
+
all: myocamlbuild.ml
- ocamlbuild quickhull.js
+ ocamlbuild $(JS); ln -s _build/$(JS) .
clean:
ocamlbuild -clean
- rm -f myocamlbuild.ml
+ rm -f myocamlbuild.ml $(JS)
myocamlbuild.ml:
ln -s ../../../tools/myocamlbuild.ml
View
2 examples/froc-dom/quickhull/index.html
@@ -9,6 +9,6 @@
<button type="button" id="bouncing">Add bouncing</button>
<button type="button" id="remove">Remove last</button>
</p>
- <script src="_build/quickhull.js"></script>
+ <script src="quickhull.js"></script>
</body>
</html>
View
6 examples/froc-dom/sudoku/Makefile
@@ -1,9 +1,11 @@
+JS=sudoku.js
+
all: myocamlbuild.ml
- ocamlbuild sudoku.js server.byte
+ ocamlbuild $(JS) server.byte; ln -s _build/$(JS) .
clean:
ocamlbuild -clean
- rm -f myocamlbuild.ml
+ rm -f myocamlbuild.ml $(JS)
myocamlbuild.ml:
ln -s ../../../tools/myocamlbuild.ml
View
2 examples/froc-dom/sudoku/index.html
@@ -6,6 +6,6 @@
<h2>Sudoku</h2>
<div id="board"></div>
<button id="new_game">New game</button>
- <script src="_build/sudoku.js"></script>
+ <script src="sudoku.js"></script>
</body>
</html>
View
6 examples/froc-dom/wheres-the-mouse/Makefile
@@ -1,9 +1,11 @@
+JS=where.js
+
all: myocamlbuild.ml
- ocamlbuild where.js
+ ocamlbuild $(JS); ln -s _build/$(JS) .
clean:
ocamlbuild -clean
- rm -f myocamlbuild.ml
+ rm -f myocamlbuild.ml $(JS)
myocamlbuild.ml:
ln -s ../../../tools/myocamlbuild.ml
View
2 examples/froc-dom/wheres-the-mouse/index.html
@@ -8,6 +8,6 @@
&lt;<span id="Mleft">not</span>,
<span id="Mtop">initialized</span>&gt;.
</p>
- <script src="_build/where.js"></script>
+ <script src="where.js"></script>
</body>
</html>

0 comments on commit efdd241

Please sign in to comment.