forked from libretime/libretime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
77 lines (64 loc) · 1.61 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
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
.PHONY: setup
SHELL = bash
all: setup
setup:
command -v pre-commit > /dev/null && pre-commit install
.env:
cp .env.dev .env
dev-certs:
rm -f dev/certs/fake.*
openssl req -x509 \
-newkey rsa:2048 \
-days 365 \
-nodes \
-subj "/CN=localhost" -addext "subjectAltName=DNS:localhost,IP:127.0.0.1" \
-keyout dev/certs/fake.key \
-out dev/certs/fake.crt
cat dev/certs/fake.{key,crt} > dev/certs/fake.pem
dev: .env dev-certs
DOCKER_BUILDKIT=1 docker-compose build
docker-compose run --rm legacy make build
docker-compose run --rm api libretime-api migrate
docker-compose up -d
.PHONY: VERSION
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 \
libretime/analyzer \
libretime/api \
libretime/api-client \
libretime/docs \
libretime/installer \
libretime/legacy \
--exclude legacy/vendor/phing \
--exclude legacy/vendor/simplepie/simplepie/tests \
libretime/playout \
libretime/shared \
libretime/tools \
libretime/worker \
libretime/CHANGELOG.md \
libretime/install \
libretime/LICENSE \
libretime/Makefile \
libretime/README.md \
libretime/SECURITY.md \
libretime/VERSION
mv ../libretime-*.tar.gz .
sha256sum libretime-*.tar.gz > sha256sums.txt
# Only clean subdirs
clean:
git clean -xdf */
docs-lint:
vale sync
vale docs
website:
git clone [email protected]:libretime/website.git
website/node_modules: website
yarn --cwd website install
docs-dev: website website/node_modules
DOCS_PATH="../docs" yarn --cwd website start