Skip to content

Commit

Permalink
feat: make install
Browse files Browse the repository at this point in the history
  • Loading branch information
erdos committed Jul 30, 2024
1 parent 3c1d2f5 commit 0816a6c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: clean prepare lint pom jar uberjar javadoc compile clj-test java-test visual-test coverage test all
.PHONY: clean prepare lint pom install jar uberjar javadoc compile clj-test java-test visual-test coverage test all
.DEFAULT_GOAL := all

clean:
Expand All @@ -13,6 +13,9 @@ lint: clean
pom: clean
clojure -T:build pom

install: clean
clojure -T:build install

jar: clean
clojure -T:build jar

Expand Down
9 changes: 9 additions & 0 deletions build.clj
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,15 @@
(println "Built JAR file")
opts)

(defn install [opts]
(jar opts)
(b/install {:basis basis
:lib lib
:version version
:jar-file jar-file-name
:class-dir jar-content})
opts)

(defn java-test [_]
(def basis (b/create-basis {:project "deps.edn" :aliases [:junit]}))

Expand Down

0 comments on commit 0816a6c

Please sign in to comment.