Skip to content

Commit 0816a6c

Browse files
committed
feat: make install
1 parent 3c1d2f5 commit 0816a6c

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

Makefile

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: clean prepare lint pom jar uberjar javadoc compile clj-test java-test visual-test coverage test all
1+
.PHONY: clean prepare lint pom install jar uberjar javadoc compile clj-test java-test visual-test coverage test all
22
.DEFAULT_GOAL := all
33

44
clean:
@@ -13,6 +13,9 @@ lint: clean
1313
pom: clean
1414
clojure -T:build pom
1515

16+
install: clean
17+
clojure -T:build install
18+
1619
jar: clean
1720
clojure -T:build jar
1821

build.clj

+9
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,15 @@
7676
(println "Built JAR file")
7777
opts)
7878

79+
(defn install [opts]
80+
(jar opts)
81+
(b/install {:basis basis
82+
:lib lib
83+
:version version
84+
:jar-file jar-file-name
85+
:class-dir jar-content})
86+
opts)
87+
7988
(defn java-test [_]
8089
(def basis (b/create-basis {:project "deps.edn" :aliases [:junit]}))
8190

0 commit comments

Comments
 (0)