4 DOCS = socketprotocol.rst databases.rst identities.rst pkcs11.rst validation.md \
5 startxxx.md p2p-tls.md tool/ircproxy-explained.md \
6 localid-selection.md anonymising-precursor.md
8 LICS = COPYRIGHT.MD LICENSE-DAEMON.MD LICENSE-DOCS.MD LICENSE-USERSPACE.MD \
11 MAN3 = tlspool_socket tlspool_starttls \
12 tlspool_ping tlspool_prng \
13 tlspool_pin_service tlspool_localid_service \
14 tlspool_control_detach tlspool_control_reattach \
17 MAN8 = tlspool tlstunnel
24 mkdir -p "$(DESTDIR)$(PREFIX)/share/doc/tlspool/"
25 mkdir -p "$(DESTDIR)$(PREFIX)/share/man/man3/"
26 mkdir -p "$(DESTDIR)$(PREFIX)/share/man/man8/"
27 @$(foreach l,$(LICS),install '../$l' '$(DESTDIR)$(PREFIX)/share/doc/tlspool/' && ) echo Installed license documents
28 @$(foreach d,$(DOCS),install '$d' '$(DESTDIR)$(PREFIX)/share/doc/tlspool/' && ) echo Installed technical documentation
29 @$(foreach m,$(MAN8),install 'man/$m.man' '$(DESTDIR)$(PREFIX)/share/man/man8/$m.8' && ) echo Installed man page section 8
30 @$(foreach n,$(MAN3),install 'man/$n.man' '$(DESTDIR)$(PREFIX)/share/man/man3/$n.3' && ) echo Installed man page section 3
32 @echo '# You may need to run makewhatis or similar to update manual page caches'
36 @$(foreach m,$(MAN3),rm -f '$(DESTDIR)$(PREFIX)/share/man/man3/$m.3' && ) echo Uninstalled man page section 3
37 @$(foreach m,$(MAN8),rm -f '$(DESTDIR)$(PREFIX)/share/man/man8/$m.8' && ) echo Uninstalled man page section 8
38 @$(foreach d,$(DOCS),rm -f '$(DESTDIR)$(PREFIX)/share/doc/tlspool/$d' && ) echo Uninstalled technical documentation
39 @$(foreach l,$(LICS),rm -f '$(DESTDIR)$(PREFIX)/share/doc/tlspool/$l' && ) echo Uninstalled license documents
40 rmdir --ignore-fail-on-non-empty "$(DESTDIR)$(PREFIX)/share/doc/tlspool/"