forked from libretime/libretime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (34 loc) · 955 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
.PHONY: setup
SHELL = bash
all: setup
setup:
command -v pre-commit > /dev/null && pre-commit install
# https://google.github.io/styleguide/shellguide.html
shell-format:
shfmt -f . | xargs shfmt -i 2 -ci -sr -kp -w
shell-check:
shfmt -f . | xargs shfmt -i 2 -ci -sr -kp -d
shfmt -f . | xargs shellcheck --color=always --severity=$${SEVERITY:-style}
VERSION:
tools/version.sh
.PHONY: tarball
tarball: VERSION
$(MAKE) -C legacy build
cd .. && tar -czf libretime-$(shell cat VERSION | tr -d [:blank:]).tar.gz \
--owner=root --group=root \
--exclude-vcs \
--exclude .codespellignore \
--exclude .git* \
--exclude .pre-commit-config.yaml \
--exclude dev_tools \
--exclude jekyll.sh \
--exclude legacy/vendor/phing \
--exclude legacy/vendor/simplepie/simplepie/tests \
libretime
mv ../libretime-*.tar.gz .
# Only clean subdirs
clean:
git clean -xdf */
docs-lint:
$(MAKE) -C .github/vale/styles
vale docs website/src/pages