Annotation of pta/Makefile, Revision 1.3
1.3 ! schwarze 1: # $Id: Makefile,v 1.2 2020/09/27 15:34:53 schwarze Exp $
1.1 schwarze 2: # Ingo Schwarze 2020. Public domain.
3:
4: all:
5: @echo 'Nothing to do; set $$DESTDIR and try "make install".'
6:
7: install:
8: @if test -z "$(DESTDIR)"; then echo "DESTDIR is not set"; exit 1; fi
9: install -o root -g wheel -m 0755 -d $(DESTDIR)/bin
10: install -o root -g wheel -m 0755 -d $(DESTDIR)/man
11: install -o root -g wheel -m 0755 -d $(DESTDIR)/man/man1
12: install -o root -g wheel -m 0755 -d $(DESTDIR)/man/man5
13: install -o root -g wheel -m 0755 -d $(DESTDIR)/man/man7
14: install -o root -g wheel -m 0755 -d $(DESTDIR)/share
15: install -o root -g wheel -m 0755 -d $(DESTDIR)/share/examples
16: install -o root -g wheel -m 0755 -d $(DESTDIR)/share/examples/pta
17: install -o root -g bin -m 0555 pta.pl $(DESTDIR)/bin/pta
18: install -o root -g bin -m 0444 pta.1 $(DESTDIR)/man/man1/
19: install -o root -g bin -m 0444 pta-accounts.5 $(DESTDIR)/man/man5/
20: install -o root -g bin -m 0444 pta-journal.5 $(DESTDIR)/man/man5/
21: install -o root -g bin -m 0444 pta-glossary.7 $(DESTDIR)/man/man7/
22: install -o root -g wheel -m 0444 accounts.example.de \
1.2 schwarze 23: accounts.example.en journal.example.en \
1.1 schwarze 24: $(DESTDIR)/share/examples/pta/
25:
1.3 ! schwarze 26: # Maintainer targets.
! 27:
! 28: WWW_MANS = pta.1.html \
! 29: pta-accounts.5.html \
! 30: pta-journal.5.html \
! 31: pta-glossary.7.html
! 32:
! 33: WWW_DIR = /var/www/vhosts/mdocml.bsd.lv/htdocs/pta
! 34:
! 35: www: $(WWW_MANS)
! 36:
! 37: www-install: www
! 38: install -o schwarze -g mdocml -m 0644 $(WWW_MANS) $(WWW_DIR)/man/
! 39:
! 40: .SUFFIXES: .1 .5 .7 .1.html .5.html .7.html
! 41:
! 42: .1.1.html .5.5.html .7.7.html:
! 43: mandoc -T html -O 'style=/mandoc.css,man=/pta/man/%N.%S.html;https://man.openbsd.org/%N.%S' $< > $@
! 44:
! 45: .PHONY: all install www-install
CVSweb