DEBS= ${PACKAGE}-server_${PKGVER}-${PKGREL}_${ARCH}.deb ${PACKAGE}-client_${PKGVER}-${PKGREL}_${ARCH}.deb
+DOC_DEB=${PACKAGE}-docs_${PKGVER}-${PKGREL}_all.deb
DESTDIR=
$(foreach i,$(SUBDIRS), \
$(MAKE) -C build/$(i) clean ;)
+.PHONY: proxmox-backup-docs
+proxmox-backup-docs: $(DOC_DEB)
+$(DOC_DEB): build
+ cd build; dpkg-buildpackage -b -us -uc --no-pre-clean
+ lintian $(DOC_DEB)
+
.PHONY: deb
deb: $(DEBS)
$(DEBS): build
- cd build; dpkg-buildpackage -b -us -uc --no-pre-clean
+ cd build; dpkg-buildpackage -b -us -uc --no-pre-clean --build-profiles=nodoc
lintian $(DEBS)
.PHONY: dsc
Homepage: https://www.proxmox.com
Package: proxmox-backup-server
+Build-Profiles: <nodoc>
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends},
libjs-extjs (>= 6.0.1),
tools. This includes a web-based graphical user interface.
Package: proxmox-backup-client
+Build-Profiles: <nodoc>
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends},
Description: Proxmox Backup Client tools
This package contains the Proxmox Backup client, which provides a
simple command line tool to create and restore backups.
+
+Package: proxmox-backup-docs
+Build-Profiles: <!nodoc>
+Section: doc
+Depends: libjs-extjs
+Architecture: all
+Description: Proxmox Backup Documentation
+ This package contains the Proxmox Backup Documentation files.
LIBEXECDIR = $(LIBDIR)
DATAROOTDIR = $(PREFIX)/share
MAN1DIR = $(PREFIX)/share/man/man1
+DOCDIR = $(PREFIX)/share/doc/${PACKAGE}
JSDIR = $(DATAROOTDIR)/javascript/proxmox-backup
SYSCONFDIR = /etc
clean:
rm -r -f *~ *.1 ${BUILDDIR} ${GENERATED_SYNOPSIS}
-install: ${MANUAL_PAGES}
+
+install_manual_pages: ${MANUAL_PAGES}
install -dm755 $(DESTDIR)$(MAN1DIR)
for i in ${MANUAL_PAGES}; do install -m755 $$i $(DESTDIR)$(MAN1DIR)/ ; done
+
+install_html: html
+ install -dm755 $(DESTDIR)$(DOCDIR)
+ rsync -a output/html $(DESTDIR)$(DOCDIR)
+
+install_pdf: latexpdf
+ install -dm755 $(DESTDIR)$(DOCDIR)
+ install -m 0644 output/latex/ProxmoxBackup.pdf $(DESTDIR)$(DOCDIR)/proxmox-backup.pdf
+
+ifneq ($(filter nodoc,$(DEB_BUILD_PROFILES)),)
+
+install: install_manual_pages
+
+else
+
+install: install_manual_pages install_html install_pdf
+
+endif