2022-04-29 11:30:26 +00:00
|
|
|
SHELL := /bin/bash
|
|
|
|
|
|
2022-06-05 15:54:51 +00:00
|
|
|
.PHONY: install # install build tools in a virtualenv
|
2022-04-29 11:30:26 +00:00
|
|
|
install:
|
|
|
|
|
python3 -m venv .venv
|
|
|
|
|
source .venv/bin/activate && \
|
2022-06-05 17:36:25 +00:00
|
|
|
pip3 install wheel && \
|
2022-08-08 11:46:37 +00:00
|
|
|
pip3 install --force git+https://github.com/nodiscc/hecat.git@master
|
2022-04-29 11:30:26 +00:00
|
|
|
|
|
|
|
|
.PHONY: import # import data from original list at https://github.com/awesome-selfhosted/awesome-selfhosted
|
|
|
|
|
import: install
|
|
|
|
|
rm -rf awesome-selfhosted && git clone --depth=1 https://github.com/awesome-selfhosted/awesome-selfhosted
|
|
|
|
|
cp awesome-selfhosted/.github/.mailmap .mailmap
|
2023-07-15 17:29:21 +00:00
|
|
|
cp awesome-selfhosted/AUTHORS AUTHORS
|
2022-06-04 12:50:26 +00:00
|
|
|
rm -rf tags/ software/ platforms/
|
|
|
|
|
mkdir -p tags/ software/ platforms/
|
2022-04-29 11:30:26 +00:00
|
|
|
source .venv/bin/activate && \
|
2022-12-05 18:14:59 +00:00
|
|
|
hecat --config .hecat/import.yml
|
2022-04-29 11:30:26 +00:00
|
|
|
|
2022-08-08 20:48:52 +00:00
|
|
|
.PHONY: update_metadata # update metadata from project repositories/API
|
|
|
|
|
update_metadata: install
|
2022-06-04 13:01:18 +00:00
|
|
|
source .venv/bin/activate && \
|
2022-12-05 18:14:59 +00:00
|
|
|
hecat --config .hecat/update-metadata.yml
|
2022-08-08 20:48:52 +00:00
|
|
|
|
|
|
|
|
.PHONY: awesome_lint # check data against awesome-selfhosted guidelines
|
|
|
|
|
awesome_lint: install
|
|
|
|
|
source .venv/bin/activate && \
|
2022-12-05 18:14:59 +00:00
|
|
|
hecat --config .hecat/awesome-lint.yml
|
2022-06-04 13:01:18 +00:00
|
|
|
|
2022-08-05 20:52:54 +00:00
|
|
|
.PHONY: export # export markdown singlepage document from yaml data
|
|
|
|
|
export: install
|
2022-04-29 11:30:26 +00:00
|
|
|
rm -rf awesome-selfhosted && git clone https://github.com/awesome-selfhosted/awesome-selfhosted
|
|
|
|
|
source .venv/bin/activate && \
|
2022-12-05 18:14:59 +00:00
|
|
|
hecat --config .hecat/export.yml
|
2022-04-29 11:30:26 +00:00
|
|
|
cd awesome-selfhosted && git diff --color=always
|
2022-06-05 15:54:51 +00:00
|
|
|
|
2023-01-24 16:51:03 +00:00
|
|
|
.PHONY: url_check # check URLs for dead links or other connection problems
|
|
|
|
|
url_check: install
|
|
|
|
|
source .venv/bin/activate && \
|
|
|
|
|
hecat --config .hecat/url-check.yml
|
|
|
|
|
|
2022-06-05 15:54:51 +00:00
|
|
|
.PHONY: help # generate list of targets with descriptions
|
|
|
|
|
help:
|
|
|
|
|
@grep '^.PHONY: .* #' Makefile | sed 's/\.PHONY: \(.*\) # \(.*\)/\1 \2/' | expand -t20
|