+VERSION=1.0
+YEAR=2018
+
# The default target
all: runtree programs configs
$(Q)a2x -f manpage $@.txt
$(Q)$(call symlink,$@,run/share/man/man8)
+# The dependency on %.1 is there to serialize both calls of asciidoc,
+# which does not name temporary files safely.
+$(o)/%.1.html: $(s)/%.1.txt $(o)/%.1
+ $(M)HTML $<
+ $(Q)a2x -f xhtml -D $(@D) $<
+$(o)/%.8.html: $(s)/%.8.txt $(o)/%.8
+ $(M)HTML $<
+ $(Q)a2x -f xhtml -D $(@D) $<
+
+release: $(HTML_DOCS)
+ git tag v$(VERSION)
+ git push --tags
+ git archive --format=tar --prefix=subauth-$(VERSION)/ HEAD | gzip >subauth-$(VERSION).tar.gz
+ rsync subauth-$(VERSION).tar.gz atrey:ftp/linux/
+ rsync $(HTML_DOCS) jw:www/static/sw/subauth/
+ ssh jw 'cd web && bin/release-prog subauth $(VERSION)'
+
endif