2021-08-16 13:20:27 +02:00
|
|
|
.PHONY: setup
|
|
|
|
|
|
|
|
SHELL = bash
|
|
|
|
|
|
|
|
all: setup
|
|
|
|
|
|
|
|
setup:
|
|
|
|
command -v pre-commit > /dev/null && pre-commit install
|
|
|
|
|
2022-07-07 23:34:52 +02:00
|
|
|
.PHONY: VERSION
|
2021-09-11 04:45:07 +02:00
|
|
|
VERSION:
|
|
|
|
tools/version.sh
|
2021-10-15 14:59:59 +02:00
|
|
|
|
2022-07-11 12:39:56 +02:00
|
|
|
changelog:
|
|
|
|
tools/changelog.sh
|
|
|
|
|
2021-10-15 14:59:59 +02:00
|
|
|
.PHONY: tarball
|
2022-09-12 10:24:53 +02:00
|
|
|
tarball: VERSION
|
2021-10-15 14:59:59 +02:00
|
|
|
$(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 .
|
2022-01-18 18:55:53 +01:00
|
|
|
|
|
|
|
# Only clean subdirs
|
|
|
|
clean:
|
|
|
|
git clean -xdf */
|
2022-02-06 15:39:09 +01:00
|
|
|
|
|
|
|
docs-lint:
|
2022-09-22 12:51:47 +02:00
|
|
|
vale sync
|
2022-12-19 16:41:01 +01:00
|
|
|
vale docs
|
2023-01-04 08:00:27 +01:00
|
|
|
|
|
|
|
website:
|
|
|
|
git clone git@github.com:libretime/website.git
|
|
|
|
|
|
|
|
website/node_modules: website
|
|
|
|
yarn --cwd website install
|
|
|
|
|
|
|
|
docs-dev: website website/node_modules
|
|
|
|
DOCS_PATH="../docs" yarn --cwd website start
|