-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
84 lines (67 loc) · 2.42 KB
/
Makefile
File metadata and controls
84 lines (67 loc) · 2.42 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# SPDX-FileCopyrightText: 2024, 2025 Jomco B.V.
# SPDX-FileCopyrightText: 2024, 2025 Stichting Connekt
# SPDX-FileContributor: Joost Diepenmaat <joost@jomco.nl>
# SPDX-FileContributor: Remco van 't Veer <remco@jomco.nl>
#
# SPDX-License-Identifier: AGPL-3.0-or-later
.PHONY: lint test doc check clean test-config jar
test-config:
$(MAKE) -C test-config
prep-lint:
clojure -M:lint --lint $$(clojure -Spath) --copy-configs --dependencies --skip-lint
lint: prep-lint
clojure -M:lint --lint */src */test test-helpers dev
reuse lint
test: test-config
clojure -M:test
clean:
rm -rf ./*/classes ./*/target test-config/*pem ./*/*.jar ./*.zip
check: test lint doc outdated
exit $$(git status --porcelain | tee /dev/fd/2 | wc -l) # fail when, after running the above, files in the repo changed
doc:
make -C connector README.md
outdated:
clojure -T:antq outdated
copyright-headers:
reuse annotate \
--copyright="Jomco B.V." \
--copyright="Stichting Connekt" \
--license="AGPL-3.0-or-later" \
--contributor="Joost Diepenmaat <joost@jomco.nl>" \
--contributor="Remco van 't Veer <remco@jomco.nl>" \
--style=lisp \
--skip-existing \
./*/*.edn ./*.edn
reuse annotate \
--copyright="Jomco B.V." \
--copyright="Stichting Connekt" \
--license="AGPL-3.0-or-later" \
--contributor="Joost Diepenmaat <joost@jomco.nl>" \
--contributor="Remco van 't Veer <remco@jomco.nl>" \
--skip-unrecognised \
--skip-existing \
--recursive .
watson:
clojure -M:watson scan -p deps.edn -f -s -w .watson.properties
%.jar:
$(MAKE) -C $(dir $@) $(notdir $@)
bdi-association-register-%.zip: association-register/bdi-association-register.jar association-register/README.md LICENSES
rm -rf "$(basename $@)"
mkdir -p "$(basename $@)"
cp -r $^ "$(basename $@)/"
zip -r $@ "$(basename $@)"
bdi-authentication-service-%.zip: authentication-service/bdi-authentication-service.jar authentication-service/README.md LICENSES
rm -rf "$(basename $@)"
mkdir -p "$(basename $@)"
cp -r $^ "$(basename $@)/"
zip -r $@ "$(basename $@)"
bdi-authorization-register-%.zip: authorization-register/bdi-authorization-register.jar authorization-register/README.md LICENSES
rm -rf "$(basename $@)"
mkdir -p "$(basename $@)"
cp -r $^ "$(basename $@)/"
zip -r $@ "$(basename $@)"
bdi-connector-%.zip: connector/bdi-connector.jar connector/README.md LICENSES
rm -rf "$(basename $@)"
mkdir -p "$(basename $@)"
cp -r $^ "$(basename $@)/"
zip -r $@ "$(basename $@)"