website

Sources for my personal website
Log | Files | Refs | README

commit ff2177126aa8d7cc6c881b28c52c6dbd2062d39d
parent cca8142bad1503eb09d229feaad16f069391d30e
Author: Sven Möller <sven-moeller@outlook.de>
Date:   Fri, 10 Dec 2021 13:15:42 +0100

Add Makefile

Diffstat:
AMakefile | 16++++++++++++++++
1 file changed, 16 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile @@ -0,0 +1,16 @@ +MD2HTML := pandoc + +SRCS := $(wildcard *.md) +DST_DIR := ./dst + +all: $(SRCS:%.md=%.html) + +%.html: %.md + mkdir -p $(DST_DIR) + cp style.css $(DST_DIR) + cat _header.html > $(DST_DIR)/$@ + $(MD2HTML) $< >> $(DST_DIR)/$@ + cat _footer.html >> $(DST_DIR)/$@ + +clean: + rm -rvf $(DST_DIR)