-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
55 lines (40 loc) · 987 Bytes
/
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
44
45
46
47
48
49
50
51
52
53
54
55
# SPDX-FileCopyrightText: 2022 Risk.Ident GmbH <[email protected]>
#
# SPDX-License-Identifier: CC0-1.0
VERSION=$(shell grep '^version:' galaxy.yml | grep -o '[0-9\.]*')
.PHONY: build
build: riskident-luks-${VERSION}.tar.gz
riskident-luks-${VERSION}.tar.gz: galaxy.yml roles/** plugins/** docs/**
@echo "Building ${VERSION}"
ansible-galaxy collection build --force
.PHONY: clean
clean:
rm -rfv riskident-luks-*.tar.gz
.PHONY: deps
deps: deps-pip deps-npm
.PHONY: deps-pip
deps-pip:
pip install --user yamllint ansible-lint reuse
.PHONY: deps-npm
deps-npm: node_modules
node_modules:
npm install
.PHONY: lint
lint: lint-md lint-yaml lint-ansible lint-license
.PHONY: lint-fix
lint-fix: lint-md-fix
.PHONY: lint-md
lint-md: node_modules
npx remark . .github
.PHONY: lint-md-fix
lint-md-fix: node_modules
npx remark . -o
.PHONY: lint-yaml
lint-yaml:
yamllint .
.PHONY: lint-ansible
lint-ansible:
ansible-lint roles
.PHONY: lint-license
lint-license:
reuse lint