-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
60 lines (41 loc) · 2.57 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
inspector/target/panel.js: inspector/src/**/* inspector/deps.edn inspector/cljs.edn
cd inspector && clojure -A:build-panel
extension/panel.js: inspector/target/panel.js
cp inspector/target/panel.js extension/panel.js
extension/panel.js.map: inspector/target/panel.js.map
cp inspector/target/panel.js.map extension/panel.js.map
extension/inspector.css: lib/resources/public/inspector.css
cp lib/resources/public/inspector.css extension/inspector.css
extension: extension/panel.js extension/panel.js.map extension/inspector.css
remote/static/assets:
mkdir -p remote/static/assets
inspector/target/remote-inspector.js: inspector/src/**/* inspector/deps.edn inspector/cljs.edn remote/static/assets
cd inspector && clojure -A:build-remote-inspector
remote/static/assets/remote-inspector.js: inspector/target/remote-inspector.js remote/static/assets
cp inspector/target/remote-inspector.js remote/static/assets/remote-inspector.js
remote/static/assets/remote-inspector.js.map: inspector/target/remote-inspector.js.map remote/static/assets
cp inspector/target/remote-inspector.js.map remote/static/assets/remote-inspector.js.map
remote/static/assets/inspector.css: lib/resources/public/inspector.css remote/static/assets
cp lib/resources/public/inspector.css remote/static/assets/inspector.css
remote-inspector: remote/static/assets/remote-inspector.js remote/static/assets/remote-inspector.js.map remote/static/assets/inspector.css
remote-server: remote/static/assets/remote-inspector.js remote/static/assets/remote-inspector.js.map remote/static/assets/inspector.css
cd remote && go run server.go
lib/target:
mkdir lib/target
lib/target/gadget-inspector.jar: lib/target lib/src/**/*.*
cd lib && clojure -A:jar
deploy: lib/target/gadget-inspector.jar
cd lib && mvn deploy:deploy-file -Dfile=target/gadget-inspector.jar -DrepositoryId=clojars -Durl=https://clojars.org/repo -DpomFile=pom.xml
firefox.xpi: extension
mkdir -p target/firefox
cp -r extension/* target/firefox/.
jq -s '.[0] * .[1]' extension/manifest.json extension/firefox-manifest.json > target/firefox/manifest.json
cd target/firefox && zip ../firefox.xpi * && cd -
demo/target/gadget-demo.js: demo/deps.edn demo/src/gadget_demo/* demo/resources/public/*
cd demo && clojure -A:dev:build
target/demo: demo/target/gadget-demo.js
mkdir -p target/demo
cp demo/target/gadget-demo.js demo/resources/public/index.html ./target/demo/.
clean:
rm -fr remote/static/assets inspector/target extension/panel.js extension/panel.js.map extension/inspector.css lib/target firefox.xpi demo/target
.PHONY: remote-inspector remote-server deploy clean