knutsen.co

Knutsen Homepage Source - knutsen.co
git clone git://git.knutsen.co/knutsen.co
Log | Files | Refs | README | LICENSE

commit 6ab46bed51a37eccce3e42c17b16dd6df2694f81
parent b1165427f2d34e81fd5c13214f7fe8382ed2d352
Author: Demonstrandum <moi@knutsen.co>
Date:   Sun,  5 Jul 2020 00:41:14 +0100

Added Makefile.

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

diff --git a/Makefile b/Makefile @@ -0,0 +1,22 @@ +SEAM := $(shell command -v seam 2> /dev/null) + +ifndef SEAM + $(error "\`seam' executable not available. Please install") +endif + +HTML_FILES := index.html + +all: $(HTML_FILES) + +index.html: + $(SEAM) --html index.sex > index.html + +install: +ifndef path + $(error "Please give an install path (e.g. path=/var/www/home)") +else + cp $(HTML_FILES) $(path) +endif + +clean: + rm -f $(HTML_FILES)