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
|
|
|
|
|
cp awesome-selfhosted/AUTHORS.md AUTHORS.md
|
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-07-31 17:45:17 +00:00
|
|
|
hecat --config .hecat.import.yml
|
2022-04-29 11:30:26 +00:00
|
|
|
|
2022-06-04 13:01:18 +00:00
|
|
|
.PHONY: process # apply automatic processing (gather github metadata)
|
|
|
|
|
process: install
|
|
|
|
|
source .venv/bin/activate && \
|
2022-07-31 17:45:17 +00:00
|
|
|
hecat --config .hecat.process.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-08-05 20:52:54 +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
|
|
|
|
|
|
|
|
.PHONY: help # generate list of targets with descriptions
|
|
|
|
|
help:
|
|
|
|
|
@grep '^.PHONY: .* #' Makefile | sed 's/\.PHONY: \(.*\) # \(.*\)/\1 \2/' | expand -t20
|