]> git.proxmox.com Git - pve-kernel-meta.git/commitdiff
makefile: convert to use simple parenthesis
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 20 May 2023 19:40:13 +0000 (21:40 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 20 May 2023 20:03:06 +0000 (22:03 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Makefile

index 600e1562edd2432b62cc1277436bf729487f71c8..6858bcca24dbcb621eada2c010189ceeaf0291a9 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -5,32 +5,32 @@ export KERNEL_ABI=6.2.11-2-pve
 
 GITVERSION:=$(shell git rev-parse HEAD)
 
-KERNEL_DEB=pve-kernel-${KERNEL_VER}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
-HEADERS_DEB=pve-headers-${KERNEL_VER}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
+KERNEL_DEB=pve-kernel-$(KERNEL_VER)_$(DEB_VERSION_UPSTREAM_REVISION)_all.deb
+HEADERS_DEB=pve-headers-$(KERNEL_VER)_$(DEB_VERSION_UPSTREAM_REVISION)_all.deb
 
 BUILD_DIR=build
 
-DEBS=${KERNEL_DEB} ${HEADERS_DEB}
+DEBS=$(KERNEL_DEB) $(HEADERS_DEB)
 
 .PHONY: deb
-deb: ${DEBS}
-
-${HEADERS_DEB}: ${KERNEL_DEB}
-${KERNEL_DEB}: debian
-       rm -rf ${BUILD_DIR}
-       mkdir -p ${BUILD_DIR}/debian
-       rsync -a * ${BUILD_DIR}/
-       cd ${BUILD_DIR}; debian/rules debian/control
-       echo "git clone git://git.proxmox.com/git/pve-kernel-meta.git\\ngit checkout ${GITVERSION}" > ${BUILD_DIR}/debian/SOURCE
-       cd ${BUILD_DIR}; dpkg-buildpackage -b -uc -us
-       lintian ${DEBS}
+deb: $(DEBS)
+
+$(HEADERS_DEB): $(KERNEL_DEB)
+$(KERNEL_DEB): debian
+       rm -rf $(BUILD_DIR)
+       mkdir -p $(BUILD_DIR)/debian
+       rsync -a * $(BUILD_DIR)/
+       cd $(BUILD_DIR); debian/rules debian/control
+       echo "git clone git://git.proxmox.com/git/pve-kernel-meta.git\\ngit checkout $(GITVERSION)" > $(BUILD_DIR)/debian/SOURCE
+       cd $(BUILD_DIR); dpkg-buildpackage -b -uc -us
+       lintian $(DEBS)
 
 .PHONY: upload
 upload: UPLOAD_DIST ?= $(DEB_DISTRIBUTION)
-upload: ${DEBS}
-       tar cf - ${DEBS}|ssh repoman@repo.proxmox.com -- upload --product pve,pmg,pbs --dist $(UPLOAD_DIST)
+upload: $(DEBS)
+       tar cf - $(DEBS)|ssh repoman@repo.proxmox.com -- upload --product pve,pmg,pbs --dist $(UPLOAD_DIST)
 
 .PHONY: clean distclean
 distclean: clean
 clean:
-       rm -rf *~ ${BUILD_DIR} *.deb *.dsc *.changes *.buildinfo
+       rm -rf *~ $(BUILD_DIR) *.deb *.dsc *.changes *.buildinfo