-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile
43 lines (33 loc) · 1.12 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
.PHONY: inline-deps clean install-base install-deps install check-env check-install-env
clean:
lein clean
rm -f .inline-deps
rm -rf .cpcache
.inline-deps: clean
lein with-profile -user inline-deps
touch .inline-deps
inline-deps: .inline-deps
install-base: .inline-deps check-install-env
lein with-profile -user,+plugin.mranderson/config install
install-deps: install-base
cd tools.deps; lein with-profile -user install
install-plugin: install-base
cd lein-plugin; lein with-profile -user install
# Usage: PROJECT_VERSION=1.19.3 make install
# PROJECT_VERSION is needed because it's not computed dynamically
install: install-base install-deps install-plugin
deploy: check-env inline-deps
lein with-profile -user,-dev,+plugin.mranderson/config deploy clojars
cd tools.deps; lein with-profile -user deploy clojars
cd lein-plugin; lein with-profile -user deploy clojars
check-env:
ifndef CLOJARS_USERNAME
$(error CLOJARS_USERNAME is undefined)
endif
ifndef CLOJARS_PASSWORD
$(error CLOJARS_PASSWORD is undefined)
endif
check-install-env:
ifndef PROJECT_VERSION
$(error Please set PROJECT_VERSION as an env var beforehand.)
endif