From 37e53b4c072f207f17496bd225a462c79ee059e0 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Tue, 14 Jul 2020 12:31:17 +0200 Subject: [PATCH] buildsys: fix targets to not run dpkg-buildpackage 4 times and add a deb-all target Signed-off-by: Thomas Lamprecht --- Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index f8fade8ac..40c1186d7 100644 --- a/Makefile +++ b/Makefile @@ -80,18 +80,21 @@ build: .PHONY: proxmox-backup-docs -proxmox-backup-docs: $(DOC_DEB) -$(DOC_DEB): build +$(DOC_DEB) $(DEBS): proxmox-backup-docs +proxmox-backup-docs: build cd build; dpkg-buildpackage -b -us -uc --no-pre-clean lintian $(DOC_DEB) # copy the local target/ dir as a build-cache .PHONY: deb -deb: $(DEBS) -$(DEBS): build +$(DEBS): deb +deb: build cd build; dpkg-buildpackage -b -us -uc --no-pre-clean --build-profiles=nodoc lintian $(DEBS) +.PHONY: deb-all +deb-all: $(DOC_DEB) $(DEBS) + .PHONY: dsc dsc: $(DSC) $(DSC): build