proxmox-backup/docs/Makefile

24 lines
588 B
Makefile
Raw Normal View History

include ../defines.mk
ifeq ($(BUILD_MODE), release)
COMPILEDIR := ../target/release
else
COMPILEDIR := ../target/debug
endif
##UNITS:= proxmox-backup-client
2019-02-24 15:19:39 +00:00
proxmox-backup-client.1: proxmox-backup-client/man1.rst proxmox-backup-client/description.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)/