makefile: convert to use simple parenthesis

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Stoiko Ivanov 2023-06-19 19:50:08 +02:00 committed by Thomas Lamprecht
parent a4d0c556de
commit ca6500923f

View File

@ -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 {} ';'