]> git.proxmox.com Git - proxmox-backup-meta.git/commitdiff
makefile: convert to use simple parenthesis
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 12 Jun 2023 09:46:51 +0000 (11:46 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 12 Jun 2023 10:53:29 +0000 (12:53 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Makefile

index a6107297bbb859faf1be5b0fecc21e3623596870..8c050519f1d96c1a38d0d463e81fc973dc2ee84a 100644 (file)
--- 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