Annotation of pta/Makefile, Revision 1.5
1.5 ! schwarze 1: # $Id: Makefile,v 1.4 2020/11/19 23:55:50 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
1.4 schwarze 17: install -o root -g bin -m 0555 pta.pl $(DESTDIR)/bin/pta
1.1 schwarze 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.5 ! schwarze 26: regress:
! 27: cd regress/import && ln -sf ../../import
! 28: cd regress/import && ./regress.pl
! 29:
! 30: regress-clean:
! 31: cd regress/import && rm -f import
! 32:
1.3 schwarze 33: # Maintainer targets.
34:
35: WWW_MANS = pta.1.html \
36: pta-accounts.5.html \
37: pta-journal.5.html \
38: pta-glossary.7.html
39:
40: WWW_DIR = /var/www/vhosts/mdocml.bsd.lv/htdocs/pta
41:
42: www: $(WWW_MANS)
43:
44: www-install: www
45: install -o schwarze -g mdocml -m 0644 $(WWW_MANS) $(WWW_DIR)/man/
46:
47: .SUFFIXES: .1 .5 .7 .1.html .5.html .7.html
48:
49: .1.1.html .5.5.html .7.7.html:
50: mandoc -T html -O 'style=/mandoc.css,man=/pta/man/%N.%S.html;https://man.openbsd.org/%N.%S' $< > $@
51:
1.5 ! schwarze 52: .PHONY: all install regress regress-clean www-install
CVSweb