]> git.proxmox.com Git - ifupdown2.git/commitdiff
makefile: convert to use simple parenthesis
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 17 May 2023 11:47:03 +0000 (13:47 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 20 May 2023 13:48:33 +0000 (15:48 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Makefile

index 5118b4a11ed84cebf35bcc399e78c267ee516f04..e99311cc9d3ad1c2c90f9a4de28a1bc50a19c7e7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3,42 +3,40 @@ include /usr/share/dpkg/pkg-info.mk
 PACKAGE=ifupdown2
 
 SRCDIR=ifupdown2
 PACKAGE=ifupdown2
 
 SRCDIR=ifupdown2
-BUILDDIR=${SRCDIR}-${DEB_VERSION_UPSTREAM}
+BUILDDIR=$(SRCDIR)-$(DEB_VERSION_UPSTREAM)
 
 GITVERSION:=$(shell git rev-parse HEAD)
 
 
 GITVERSION:=$(shell git rev-parse HEAD)
 
-DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
+DEB=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION)_all.deb
 
 
-all: ${DEB}
-       @echo ${DEB}
+all: $(DEB)
+       @echo $(DEB)
 
 .PHONY: submodule
 submodule:
 
 .PHONY: submodule
 submodule:
-       test -f "${SRCDIR}/debian/changelog" || git submodule update --init
+       test -f "$(SRCDIR)/debian/changelog" || git submodule update --init
 
 
-buildir: ${BUILDDIR}
-${BUILDDIR}: submodule
+buildir: $(BUILDDIR)
+$(BUILDDIR): submodule
        rm -rf $(BUILDDIR)
        mkdir $(BUILDDIR)
        cp -a $(SRCDIR)/* $(BUILDDIR)/
        cp -R debian/* $(BUILDDIR)/debian/
 
 .PHONY: deb
        rm -rf $(BUILDDIR)
        mkdir $(BUILDDIR)
        cp -a $(SRCDIR)/* $(BUILDDIR)/
        cp -R debian/* $(BUILDDIR)/debian/
 
 .PHONY: deb
-deb: ${DEB}
-${DEB}: ${BUILDDIR}
-       cd ${BUILDDIR}; dpkg-buildpackage -rfakeroot -b -uc -us
+deb: $(DEB)
+$(DEB): $(BUILDDIR)
+       cd $(BUILDDIR); dpkg-buildpackage -rfakeroot -b -uc -us
 
 .PHONY: upload
 
 .PHONY: upload
-upload: ${DEB}
-       tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg,pbs --dist bullseye
+upload: $(DEB)
+       tar cf - $(DEB) | ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg,pbs --dist bullseye
 
 
-.PHONY: distclean
+.PHONY: distclean clean
 distclean: clean
 distclean: clean
-
-.PHONY: clean
 clean:
 clean:
-       rm -rf ${PACKAGE}-*/ *.deb *.changes *.dsc *.buildinfo
+       rm -rf $(PACKAGE)-*/ *.deb *.changes *.dsc *.buildinfo
 
 .PHONY: dinstall
 dinstall: deb
 
 .PHONY: dinstall
 dinstall: deb
-       dpkg -i ${DEB}
+       dpkg -i $(DEB)