makefile: convert to use simple parenthesis

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2023-06-12 11:46:51 +02:00
parent 41c732aeb3
commit 898ac4a79a

View File

@ -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