]> git.proxmox.com Git - pve-zsync.git/commitdiff
makefile: convert to use simple parenthesis
authorFiona Ebner <f.ebner@proxmox.com>
Wed, 24 May 2023 11:39:54 +0000 (13:39 +0200)
committerFiona Ebner <f.ebner@proxmox.com>
Wed, 24 May 2023 11:44:54 +0000 (13:44 +0200)
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
Makefile

index 576fad637bf5e8e25354a98589a46e11100fa641..79c02063f563ce411dc9c12c4b08336b712f5ef0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3,56 +3,56 @@ include /usr/share/dpkg/pkg-info.mk
 PACKAGE=pve-zsync
 
 DESTDIR=
-SBINDIR=${DESTDIR}/usr/sbin
-MAN8DIR=${DESTDIR}/usr/share/man/man8
-DOCDIR=${DESTDIR}/usr/share/doc/${PACKAGE}
-WORKDIR=${DESTDIR}/var/lib/pve-zsync
+SBINDIR=$(DESTDIR)/usr/sbin
+MAN8DIR=$(DESTDIR)/usr/share/man/man8
+DOCDIR=$(DESTDIR)/usr/share/doc/$(PACKAGE)
+WORKDIR=$(DESTDIR)/var/lib/pve-zsync
 
-BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM}
+BUILDDIR ?= $(PACKAGE)-$(DEB_VERSION_UPSTREAM)
 
 GITVERSION:=$(shell git rev-parse HEAD)
 
-DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
-DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc
+DEB=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION)_all.deb
+DSC=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION).dsc
 
 all:
 
 .PHONY: dinstall
 dinstall: deb
-       dpkg -i ${DEB}
+       dpkg -i $(DEB)
 
 pve-zsync.8: pve-zsync
-       ./pve-zsync printpod | pod2man -c "Proxmox Documentation" -s 8 -r ${DEB_VERSION_UPSTREAM} -n pve-zsync - pve-zsync.8
+       ./pve-zsync printpod | pod2man -c "Proxmox Documentation" -s 8 -r $(DEB_VERSION_UPSTREAM) -n pve-zsync - pve-zsync.8
 
 .PHONY: install
 install: pve-zsync.8
-       install -d ${SBINDIR}
-       install -m 0755 pve-zsync ${SBINDIR}/pve-zsync
-       install -d ${WORKDIR}
-       install -d ${MAN8DIR}
-       install -m 0644 pve-zsync.8 ${MAN8DIR}/pve-zsync.8
-       install -d ${DOCDIR}
-
-${BUILDDIR}:
-       rm -rf ${BUILDDIR}
-       rsync -a * ${BUILDDIR}
-       echo "git clone git://git.proxmox.com/git/dab.git\\ngit checkout ${GITVERSION}" >  ${BUILDDIR}/debian/SOURCE
+       install -d $(SBINDIR)
+       install -m 0755 pve-zsync $(SBINDIR)/pve-zsync
+       install -d $(WORKDIR)
+       install -d $(MAN8DIR)
+       install -m 0644 pve-zsync.8 $(MAN8DIR)/pve-zsync.8
+       install -d $(DOCDIR)
+
+$(BUILDDIR):
+       rm -rf $(BUILDDIR)
+       rsync -a * $(BUILDDIR)
+       echo "git clone git://git.proxmox.com/git/dab.git\\ngit checkout $(GITVERSION)" >  $(BUILDDIR)/debian/SOURCE
 
 .PHONY: deb
-deb: ${DEB}
-${DEB}: ${BUILDDIR}
-       cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc
-       lintian ${DEB}
+deb: $(DEB)
+$(DEB): $(BUILDDIR)
+       cd $(BUILDDIR); dpkg-buildpackage -b -us -uc
+       lintian $(DEB)
 
 .PHONY: dsc
-dsc: ${DSC}
-${DSC}:${BUILDDIR}
-       cd ${BUILDDIR}; dpkg-buildpackage -S -us -uc -d -nc
-       lintian ${DSC}
+dsc: $(DSC)
+$(DSC):$(BUILDDIR)
+       cd $(BUILDDIR); dpkg-buildpackage -S -us -uc -d -nc
+       lintian $(DSC)
 
 .PHONY: clean
 clean:
-       rm -rf ${BUILDDIR} *.deb *.dsc ${PACKAGE}*.tar.gz *.buildinfo *.changes
+       rm -rf $(BUILDDIR) *.deb *.dsc $(PACKAGE)*.tar.gz *.buildinfo *.changes
        find . -name '*~' -exec rm {} ';'
 
 .PHONY: distclean
@@ -60,5 +60,5 @@ distclean: clean
 
 
 .PHONY: upload
-upload: ${DEB}
-       tar cf - ${DEB} | ssh repoman@repo.proxmox.com upload --product pve --dist bullseye
+upload: $(DEB)
+       tar cf - $(DEB) | ssh repoman@repo.proxmox.com upload --product pve --dist bullseye