]> git.proxmox.com Git - proxmox-ve.git/commitdiff
makefile: convert to use simple parenthesis
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 24 May 2023 17:59:46 +0000 (19:59 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 24 May 2023 17:59:46 +0000 (19:59 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Makefile

index 9eb0922a33bf82827d7833b9ebf4e64c8016c137..0e79720390011ff6d7df3f9d08eeb9bc11c12580 100644 (file)
--- 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