work on gemini distribution

This commit is contained in:
2026-05-03 18:20:26 +02:00
parent 80c3617562
commit b3fd193c40
2 changed files with 16 additions and 6 deletions
+11 -1
View File
@@ -5,13 +5,23 @@ RES_DIR = res
PAGES_DIR = $(SRC_DIR)/pages
BLOG_DIR = $(SRC_DIR)/blog
DIST_DIR = dist
GEMINI_DIST_DIR = dist_gemini
BUILD_DIR = build
PAGES = $(notdir $(wildcard $(PAGES_DIR)/*.html))
BLOG_PAGES = $(wildcard $(BLOG_DIR)/*.md)
TARGETS = $(addprefix $(DIST_DIR)/,$(PAGES))
GEMINI_TARGETS = $(addprefix $(GEMINI_DIST_DIR)/,$(patsubst %.html, %.md, $(PAGES)))
all: $(PAGES_DIR)/blog.html $(TARGETS) favicon
all: $(PAGES_DIR)/blog.html $(TARGETS)
mkdir_gemini:
mkdir -p $(GEMINI_DIST_DIR)
$(GEMINI_DIST_DIR)/%.md: $(DIST_DIR)/%.html
pandoc -f html -t markdown $(DIST_DIR)/$*.html -o $(GEMINI_DIST_DIR)/$*.md
gemini: all $(GEMINI_TARGETS) | mkdir_gemini
watch:
find ./$(SRC_DIR) -iname '*.html' -o -name "*.css" | entr -d make -f ./Makefile ;