From 898ac4a79a1330ae12f9261ff84595ed6060e0bc Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Mon, 12 Jun 2023 11:46:51 +0200 Subject: [PATCH] makefile: convert to use simple parenthesis Signed-off-by: Thomas Lamprecht --- Makefile | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/Makefile b/Makefile index a610729..8c05051 100644 --- a/Makefile +++ b/Makefile @@ -4,31 +4,30 @@ PACKAGE=proxmox-backup GITVERSION:=$(shell git rev-parse HEAD) -DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb +DEB=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION)_all.deb -DEBS=${DEB} +DEBS=$(DEB) BUILD_DIR=build ARCH=amd64 DIST=bullseye -all: ${DEB} +all: $(DEB) .PHONY: deb -deb ${CT_DEB}: ${DEB} -${DEB}: debian - rm -rf ${BUILD_DIR} - mkdir -p ${BUILD_DIR}/debian - cp -ar debian/* ${BUILD_DIR}/debian/ - echo "git clone git://git.proxmox.com/git/proxmox-backup-meta.git\\ngit checkout ${GITVERSION}" > ${BUILD_DIR}/debian/SOURCE - cd ${BUILD_DIR}; dpkg-buildpackage -b -uc -us - lintian ${DEBS} +deb $(CT_DEB): $(DEB) +$(DEB): debian + rm -rf $(BUILD_DIR) + mkdir -p $(BUILD_DIR)/debian + cp -ar debian/* $(BUILD_DIR)/debian/ + echo "git clone git://git.proxmox.com/git/proxmox-backup-meta.git\\ngit checkout $(GITVERSION)" > $(BUILD_DIR)/debian/SOURCE + cd $(BUILD_DIR); dpkg-buildpackage -b -uc -us + lintian $(DEBS) .PHONY: upload -upload: ${DEBS} - tar cf - ${DEBS}|ssh -X repoman@repo.proxmox.com -- upload --product pbs --dist ${DIST} --arch ${ARCH} +upload: $(DEBS) + tar cf - $(DEBS)|ssh -X repoman@repo.proxmox.com -- upload --product pbs --dist $(DIST) --arch $(ARCH) clean: - rm -rf ${BUILD_DIR} *.deb *.buildinfo *.changes - find . -name '*~' -exec rm {} ';' + rm -rf $(BUILD_DIR) *.deb *.buildinfo *.changes