From e0046a0b973b5f89d7f9df388a4dfb9f18178ea4 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 24 May 2023 19:59:46 +0200 Subject: [PATCH] makefile: convert to use simple parenthesis Signed-off-by: Thomas Lamprecht --- Makefile | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/Makefile b/Makefile index 9eb0922..0e79720 100644 --- a/Makefile +++ b/Makefile @@ -4,32 +4,32 @@ PACKAGE=proxmox-ve GITVERSION:=$(shell git rev-parse HEAD) -PVE_DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb -PVE_HEADERS_DEB=pve-headers_${DEB_VERSION_UPSTREAM_REVISION}_all.deb +PVE_DEB=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION)_all.deb +PVE_HEADERS_DEB=pve-headers_$(DEB_VERSION_UPSTREAM_REVISION)_all.deb BUILD_DIR=build -DEBS=${PVE_DEB} ${PVE_HEADERS_DEB} +DEBS=$(PVE_DEB) $(PVE_HEADERS_DEB) all: deb -deb: ${DEBS} +deb: $(DEBS) -${PVE_HEADERS_DEB}: ${PVE_DEB} -${PVE_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-ve.git\\ngit checkout ${GITVERSION}" > ${BUILD_DIR}/debian/SOURCE - cd ${BUILD_DIR}; dpkg-buildpackage -b -uc -us - lintian ${DEBS} +$(PVE_HEADERS_DEB): $(PVE_DEB) +$(PVE_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-ve.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 repoman@repo.proxmox.com -- upload --product pve --dist bullseye --arch ${DEB_BUILD_ARCH} +upload: $(DEBS) + tar cf - $(DEBS)|ssh repoman@repo.proxmox.com -- upload --product pve --dist bullseye --arch $(DEB_BUILD_ARCH) .PHONY: distclean distclean: clean .PHONY: clean clean: - rm -rf *~ ${BUILD_DIR} *.deb *.dsc *.changes *.buildinfo + rm -rf *~ $(BUILD_DIR) *.deb *.dsc *.changes *.buildinfo -- 2.39.2