Skip to content

Commit 71cd95e

Browse files
committed
Add make install command
Also includes our usual refinements (`-user` etc).
1 parent 3b69a2c commit 71cd95e

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

Makefile

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,35 +8,38 @@ resources/clojuredocs/export.edn:
88
curl -o $@ https://github.com/clojure-emacs/clojuredocs-export-edn/raw/master/exports/export.compact.edn
99

1010
test:
11-
lein with-profile +$(VERSION),$(TEST_PROFILES) test
11+
lein with-profile -user,-dev,+$(VERSION),$(TEST_PROFILES) test
1212

1313
test-watch: test-resources/clojuredocs/export.edn
1414
lein with-profile +$(VERSION),$(TEST_PROFILES) test-refresh
1515

1616
eastwood:
17-
lein with-profile +$(VERSION),+eastwood,$(TEST_PROFILES) eastwood
17+
lein with-profile -user,-dev,+$(VERSION),+eastwood,$(TEST_PROFILES) eastwood
1818

1919
cljfmt:
20-
lein with-profile +$(VERSION),+cljfmt cljfmt check
20+
lein with-profile -user,-dev,+$(VERSION),+cljfmt cljfmt check
2121

2222
kondo:
23-
lein with-profile -dev,+clj-kondo run -m clj-kondo.main --lint src test src-jdk8 src-newer-jdks
23+
lein with-profile -user,-dev,+clj-kondo run -m clj-kondo.main --lint src test src-jdk8 src-newer-jdks
2424

2525
# When releasing, the BUMP variable controls which field in the
2626
# version string will be incremented in the *next* snapshot
2727
# version. Typically this is either "major", "minor", or "patch".
2828

2929
BUMP ?= patch
3030

31-
release:
32-
lein with-profile +$(VERSION) release $(BUMP)
31+
release: clean
32+
lein with-profile -user,-dev,+$(VERSION) release $(BUMP)
3333

3434
# Deploying requires the caller to set environment variables as
3535
# specified in project.clj to provide a login and password to the
3636
# artifact repository.
3737

38-
deploy:
39-
lein with-profile +$(VERSION) deploy clojars
38+
deploy: clean
39+
lein with-profile -user,-dev,+$(VERSION) deploy clojars
40+
41+
install: clean
42+
lein with-profile -user,-dev,+$(VERSION) install
4043

4144
clean:
42-
lein clean
45+
lein with-profile -user,-dev clean

0 commit comments

Comments
 (0)