From 30c0774d6261fe9eb04f2506b2f69a1f230523c8 Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Thu, 20 Mar 2025 18:46:50 +0100 Subject: [PATCH] draft: knowledge base makefile --- kn.mk | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 kn.mk diff --git a/kn.mk b/kn.mk new file mode 100644 index 0000000..d29c00a --- /dev/null +++ b/kn.mk @@ -0,0 +1,18 @@ +all_docs != find krov/serverko -name README.md + +path_to_docs = $(patsubst krov/%/README.md, docs/%.md, $(all_docs)) + +stripped_docs = $(notdir $(path_to_docs)) + +x: + $(info $(all_docs)) + $(info $(stripped_docs)) + +docs/kralizec/%.md: kralizec/%/README.md + mkdir -p $(@D) + cp $< $@ + +docs/serverko/%.md: krov/serverko/%/README.md + mkdir -p $(@D) + cp $< $@ +