=================================================================== RCS file: /cvs/pta/Makefile,v retrieving revision 1.2 retrieving revision 1.3 diff -u -p -r1.2 -r1.3 --- pta/Makefile 2020/09/27 15:34:53 1.2 +++ pta/Makefile 2020/10/04 14:17:01 1.3 @@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.2 2020/09/27 15:34:53 schwarze Exp $ +# $Id: Makefile,v 1.3 2020/10/04 14:17:01 schwarze Exp $ # Ingo Schwarze 2020. Public domain. all: @@ -23,4 +23,23 @@ install: accounts.example.en journal.example.en \ $(DESTDIR)/share/examples/pta/ -.PHONY: all install +# Maintainer targets. + +WWW_MANS = pta.1.html \ + pta-accounts.5.html \ + pta-journal.5.html \ + pta-glossary.7.html + +WWW_DIR = /var/www/vhosts/mdocml.bsd.lv/htdocs/pta + +www: $(WWW_MANS) + +www-install: www + install -o schwarze -g mdocml -m 0644 $(WWW_MANS) $(WWW_DIR)/man/ + +.SUFFIXES: .1 .5 .7 .1.html .5.html .7.html + +.1.1.html .5.5.html .7.7.html: + mandoc -T html -O 'style=/mandoc.css,man=/pta/man/%N.%S.html;https://man.openbsd.org/%N.%S' $< > $@ + +.PHONY: all install www-install