]> git.proxmox.com Git - pve-installer.git/commitdiff
use separate faster and incremental DEB build for check targets
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 19 Jun 2023 09:47:49 +0000 (11:47 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 19 Jun 2023 10:19:37 +0000 (12:19 +0200)
Faster as lintian isn't called on the resulting package and
incremental, as the no-pre-clean (-nc) flag is passed to build
package.

This is mostly relevant since the rust based TUI prototype got added
to packaging, as those needs quite a bit longer compared to copying
perl module files.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Makefile

index e5c6a7c20d00012c9536777fff1d741ec0d6135a..de6ad7c58bf8ee3e4231c9ea251d916aafd57e97 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -32,6 +32,11 @@ ${DEB}: ${INSTALLER_SOURCES}
        cd build; dpkg-buildpackage -b -us -uc
        lintian ${DEB}
 
+test-$(DEB): $(INSTALLER_SOURCES)
+       rsync --exclude='test*.img' -a * build
+       cd build; dpkg-buildpackage -b -us -uc -nc
+       mv $(DEB) test-$(DEB)
+
 DESTDIR=
 VARLIBDIR=$(DESTDIR)/var/lib/proxmox-installer
 HTMLDIR=$(VARLIBDIR)/html/common
@@ -71,10 +76,10 @@ upload: $(DEB)
        truncate -s 8G $@
 
 .PHONY: prepare-check-env
-prepare-check-env: $(DEB)
+prepare-check-env: test-$(DEB)
        umount -Rd testdir || true
        rm -rf testdir
-       dpkg -X $(DEB) testdir
+       dpkg -X test-$(DEB) testdir
 
 cd-info.test: PRODUCT ?= pve
 cd-info.test: