makefile

changeset 0
fbc739176a6e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/makefile	Thu Jan 22 19:36:58 2026 +0300
@@ -0,0 +1,39 @@
+DIST=	dist
+
+.PHONY: all clean
+
+all: $(DIST)/ssh.html $(DIST)/irc.html $(DIST)/index.html $(DIST)/email.html $(DIST)/style.css $(DIST)/scheme.css $(DIST)/changelog.html
+
+$(DIST):
+	mkdir -p $(DIST)
+
+$(DIST)/index.html: index.1 style.css $(DIST)
+	cp index.1 $(DIST)/index.1
+	mandoc -Thtml -Ostyle=style.css index.1 > $@
+
+$(DIST)/email.html: email.7 style.css $(DIST)
+	mandoc -Thtml -Ostyle=style.css email.7 > $@
+	cp email.7 $(DIST)/email.7
+	cp "ssh@keys" $(DIST)/
+	cp minisign*.pub $(DIST)
+
+$(DIST)/changelog.html: changelog.7 style.css $(DIST)
+	mandoc -Thtml -Ostyle=style.css changelog.7 > $@
+	cp changelog.7 $(DIST)/changelog.7
+
+$(DIST)/irc.html: irc.7 style.css $(DIST)
+	mandoc -Thtml -Ostyle=style.css irc.7 > $@
+	cp irc.7 $(DIST)/irc.7
+
+$(DIST)/ssh.html: ssh.7 style.css $(DIST)
+	mandoc -Thtml -Ostyle=style.css ssh.7 > $@
+	cp ssh.7 $(DIST)/ssh.7
+	
+$(DIST)/style.css: style.css $(DIST)
+	cp style.css $@
+
+$(DIST)/scheme.css: scheme.css $(DIST)
+	cp scheme.css $@
+
+clean:
+	rm -rf $(DIST)

mercurial