nakidai.ru/Makefile

23 lines
467 B
Makefile
Raw Normal View History

2024-08-24 22:22:12 +03:00
WEBROOT ?= root
2024-08-27 19:29:24 +03:00
GEN = index.html cstyle.html
2024-09-14 13:39:31 +03:00
FILES = ${GEN} style.css plaza521.asc nakidai.asc
2024-08-24 22:22:12 +03:00
all: ${GEN}
2024-08-27 19:29:24 +03:00
index.html: index.7
2024-08-31 03:02:43 +03:00
mandoc -Thtml index.7 -Ostyle=style.css | sed -e '/<head>/a\
<link rel="me" href="https://mstdn.social/@nakidai">' > index.html
2024-08-24 22:22:12 +03:00
2024-08-27 19:29:24 +03:00
cstyle.html: cstyle.7
mandoc -Thtml cstyle.7 -Ostyle=style.css > cstyle.html
2024-08-24 22:22:12 +03:00
clean:
rm -f ${GEN}
install: ${FILES}
install -d ${WEBROOT}
install -Cm644 ${FILES} ${WEBROOT}
.PHONY: all clean install