start generating manual pages

Depend on docutils-doc
This commit is contained in:
Dietmar Maurer
2019-02-24 09:51:10 +01:00
parent 793b0f4d77
commit bb5c770758
7 changed files with 80 additions and 1 deletions

23
docs/Makefile Normal file
View File

@ -0,0 +1,23 @@
include ../defines.mk
ifeq ($(BUILD_MODE), release)
COMPILEDIR := ../target/release
else
COMPILEDIR := ../target/debug
endif
##UNITS:= proxmox-backup-client
proxmox-backup-client.1: proxmox-backup-client/man1.rst ${COMPILEDIR}/proxmox-backup-client
${COMPILEDIR}/proxmox-backup-client printdoc > proxmox-backup-client/synopsis.rst
rst2man $< >$@
all: proxmox-backup-client.1
clean:
rm -f *.1 */synopsis.rst
install: proxmox-backup-client.1
install -dm755 $(DESTDIR)$(MAN1DIR)
install -m755 proxmox-backup-client.1 $(DESTDIR)$(MAN1DIR)/