-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
37 lines (28 loc) · 885 Bytes
/
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
26
27
28
29
30
31
32
33
34
35
36
.PHONY: demo
man-build:
java -cp cljs.jar:src clojure.main manual-build.clj
prod:
lein cljsbuild auto prod
clean :
lein cljsbuild clean
lein clean
print-%: ; @echo $*=$($*)
demo-js:
lein cljsbuild auto demo
# Requires make demo-js
demo :
echo "<html><head><title>Klang logging demo</title></head>" > demo.html
echo "<script src=\"https://cdnjs.cloudflare.com/ajax/libs/react/15.5.4/react.min.js\"></script>" >> demo.html
echo "<script src=\"https://cdnjs.cloudflare.com/ajax/libs/react/15.5.4/react-dom.min.js\"></script>" >> demo.html
echo "<body><script>" >> demo.html
cat ./resources/public/cljs/demo/app.js >> demo.html
echo "</script></body></html>" >> demo.html
debug-jar :
rm -rf jar_extract
mkdir -p jar_extract
cp target/klang.jar jar_extract
cd jar_extract && jar xf klang.jar
deploy :
rm -rf target/classes
rm -rf target/stale
lein deploy clojars