-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (29 loc) · 755 Bytes
/
Makefile
File metadata and controls
41 lines (29 loc) · 755 Bytes
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
# Copyright © Manetu, Inc. All rights reserved
NAME=manetu-data-loader
BINDIR ?= /usr/local/bin
OUTPUT=target/$(NAME)
SHELL=/bin/bash -o pipefail
SRCS += $(shell find src -type f)
COVERAGE_THRESHOLD = 98
COVERAGE_EXCLUSION += "manetu.data-loader.main"
all: scan bin
bin: $(OUTPUT)
scan:
lein cljfmt check
lein bikeshed -m 120 -n false
#lein kibit
lein eastwood
.PHONY: test
test:
lein cloverage --fail-threshold $(COVERAGE_THRESHOLD) $(patsubst %,-e %, $(COVERAGE_EXCLUSION)) | perl -pe 's/\e\[?.*?[\@-~]//g'
$(OUTPUT): $(SRCS) Makefile project.clj
@lein bin
$(PREFIX)$(BINDIR):
mkdir -p $@
install: $(OUTPUT) $(PREFIX)$(BINDIR)
cp $(OUTPUT) $(PREFIX)$(BINDIR)
clean:
@echo "Cleaning up.."
@lein clean
-@rm -rf target
-@rm -f *~