]> git.proxmox.com Git - proxmox-backup.git/commitdiff
generate separate proxmox-backup-docs package
authorDietmar Maurer <dietmar@proxmox.com>
Fri, 13 Dec 2019 13:14:28 +0000 (14:14 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 13 Dec 2019 13:15:07 +0000 (14:15 +0100)
Makefile
debian/control
defines.mk
docs/Makefile

index 634745b8b7fbffd65bc6102c6764e5ad799f25c6..a6c746c23a06fee6be69307670e938b8ec4e63ab 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -34,6 +34,7 @@ COMPILED_BINS := \
 
 DEBS= ${PACKAGE}-server_${PKGVER}-${PKGREL}_${ARCH}.deb ${PACKAGE}-client_${PKGVER}-${PKGREL}_${ARCH}.deb
 
+DOC_DEB=${PACKAGE}-docs_${PKGVER}-${PKGREL}_all.deb
 
 DESTDIR=
 
@@ -63,10 +64,16 @@ build:
        $(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
index 60fc5dbe08199f52ab810d758863f16d8a2d3873..1e94ea3ace5c68ff20b6c26eaeb5cff7cd043b5c 100644 (file)
@@ -18,6 +18,7 @@ Standards-Version: 3.9.5
 Homepage: https://www.proxmox.com
 
 Package: proxmox-backup-server
+Build-Profiles: <nodoc>
 Architecture: any
 Depends: ${shlibs:Depends}, ${misc:Depends},
         libjs-extjs (>= 6.0.1),
@@ -29,8 +30,17 @@ Description: Proxmox Backup Server daemon with tools and GUI
  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.
index 31a8cdaaf7d4b32b7f178b9016da06d70f800fab..97723eeaee760c284b12f60b8e8d6ceeb7a7dfb2 100644 (file)
@@ -9,6 +9,7 @@ LIBDIR = $(PREFIX)/lib
 LIBEXECDIR = $(LIBDIR)
 DATAROOTDIR = $(PREFIX)/share
 MAN1DIR = $(PREFIX)/share/man/man1
+DOCDIR = $(PREFIX)/share/doc/${PACKAGE}
 JSDIR = $(DATAROOTDIR)/javascript/proxmox-backup
 SYSCONFDIR = /etc
 
index e74939875cf36021dde27e4b6ed3f62573a6a7a1..c31265b5a45e9761809ea6b1a26bef0fb003f4ee 100644 (file)
@@ -87,6 +87,25 @@ epub3: ${GENERATED_SYNOPSIS}
 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