nakidai.ru/Makefile

23 lines
467 B
Makefile

WEBROOT ?= root
GEN = index.html cstyle.html
FILES = ${GEN} style.css plaza521.asc nakidai.asc
all: ${GEN}
index.html: index.7
mandoc -Thtml index.7 -Ostyle=style.css | sed -e '/<head>/a\
<link rel="me" href="https://mstdn.social/@nakidai">' > index.html
cstyle.html: cstyle.7
mandoc -Thtml cstyle.7 -Ostyle=style.css > cstyle.html
clean:
rm -f ${GEN}
install: ${FILES}
install -d ${WEBROOT}
install -Cm644 ${FILES} ${WEBROOT}
.PHONY: all clean install