add favicon

This commit is contained in:
2026-04-30 12:49:40 +02:00
parent 02ce97e865
commit 49c432cca3
5 changed files with 52 additions and 4 deletions
+5 -4
View File
@@ -1,6 +1,7 @@
.PHONY: all mkdist watch clean
SRC_DIR = src
RES_DIR = res
PAGES_DIR = $(SRC_DIR)/pages
BLOG_DIR = $(SRC_DIR)/blog
DIST_DIR = dist
@@ -13,10 +14,7 @@ TARGETS = $(addprefix $(DIST_DIR)/,$(PAGES))
all: $(PAGES_DIR)/blog.html $(TARGETS)
watch:
while sleep 1 ; do \
find ./$(SRC_DIR) -iname '*.html' -o -name "*.css" \
| entr -d make -f ./Makefile ; \
done
find ./$(SRC_DIR) -iname '*.html' -o -name "*.css" | entr -d make -f ./Makefile ;
mkdirs:
mkdir -p $(DIST_DIR)
@@ -26,6 +24,9 @@ template: $(SRC_DIR)/start.html $(SRC_DIR)/nav.html $(SRC_DIR)/side.html | mkdir
cp -r $(SRC_DIR)/styles $(DIST_DIR)
cat $(SRC_DIR)/start.html $(SRC_DIR)/nav.html $(SRC_DIR)/side.html > $(BUILD_DIR)/template.html
favicon: $(RES_DIR) | mkdirs
cp res/* dist/
$(PAGES_DIR)/blog.html: $(BLOG_PAGES) $(BLOG_DIR)/start_blog.html $(BLOG_DIR)/end_blog.html
pandoc -f markdown -t html $^ -o $@.tmp
cat $(BLOG_DIR)/start_blog.html $@.tmp $(BLOG_DIR)/end_blog.html > $@