From ca6500923f7912db6221bd68a5c23a554897f98b Mon Sep 17 00:00:00 2001 From: Stoiko Ivanov Date: Mon, 19 Jun 2023 19:50:08 +0200 Subject: [PATCH] makefile: convert to use simple parenthesis Signed-off-by: Stoiko Ivanov Signed-off-by: Thomas Lamprecht --- Makefile | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/Makefile b/Makefile index 882d1a3..886b54b 100644 --- a/Makefile +++ b/Makefile @@ -4,32 +4,32 @@ PACKAGE=proxmox-mailgateway GITVERSION:=$(shell git rev-parse HEAD) -DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb -CT_DEB=${PACKAGE}-container_${DEB_VERSION_UPSTREAM_REVISION}_all.deb -HEADER_DEB=pve-headers_${DEB_VERSION_UPSTREAM_REVISION}_all.deb +DEB=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION)_all.deb +CT_DEB=$(PACKAGE)-container_$(DEB_VERSION_UPSTREAM_REVISION)_all.deb +HEADER_DEB=pve-headers_$(DEB_VERSION_UPSTREAM_REVISION)_all.deb -DEBS=${DEB} ${CT_DEB} ${HEADER_DEB} +DEBS=$(DEB) $(CT_DEB) $(HEADER_DEB) BUILD_DIR=build ARCH=amd64 -all: ${DEB} +all: $(DEB) .PHONY: deb -deb ${CT_DEB} ${HEADER_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-mailgateway.git\\ngit checkout ${GITVERSION}" > ${BUILD_DIR}/debian/SOURCE - cd ${BUILD_DIR}; dpkg-buildpackage -b -uc -us - lintian ${DEBS} +deb $(CT_DEB) $(HEADER_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-mailgateway.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 pmg --dist bullseye --arch ${ARCH} +upload: $(DEBS) + tar cf - $(DEBS)|ssh -X repoman@repo.proxmox.com -- upload --product pmg --dist bullseye --arch $(ARCH) clean: - rm -rf ${BUILD_DIR} *.deb *.buildinfo *.changes + rm -rf $(BUILD_DIR) *.deb *.buildinfo *.changes find . -name '*~' -exec rm {} ';'