-
Notifications
You must be signed in to change notification settings - Fork 14
/
Makefile
43 lines (33 loc) · 1.14 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
# Copyright © 2019 State Street Bank and Trust Company. All rights reserved
#
# SPDX-License-Identifier: Apache-2.0
NAME = protojure
LEIN = $(shell which lein || echo ./lein)
DEPS = Makefile project.clj
all: scan test install
scan:
$(LEIN) sub cljfmt check
cd test && $(LEIN) cljfmt check
# 'deep-scan' is a target for useful linters that are not conducive to automated checking,
# typically because they present some false positives without an easy mechanism to overrule
# them. So we provide the target to make it easy to run by hand, but leave them out of the
# automated gates.
deep-scan: scan
-$(LEIN) sub bikeshed
-$(LEIN) sub kibit
.PHONY: test
test:
cd test && $(LEIN) cloverage
install:
$(LEIN) sub install
set-version:
sed -i '' 's/def protojure-version \".*\"/def protojure-version \"$(VERSION)\"/' project.clj
$(LEIN) sub set-version $(VERSION)
clean:
$(LEIN) sub clean
cd test && $(LEIN) clean
$(LEIN) clean
.PHONY: protos
protos:
mkdir -p test/test/resources
protoc --clojure_out=grpc-client,grpc-server:test/test --proto_path=test/test/resources $(shell find test/test/resources -name "*.proto" | sed 's|test/test/resources/||g')