]> git.proxmox.com Git - frr.git/commitdiff
makefile: convert to use simple parenthesis
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 6 Jun 2023 06:44:57 +0000 (08:44 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 6 Jun 2023 08:08:05 +0000 (10:08 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Makefile

index 70bbdc6ab8fa3975ebdca297461a31ba59e88425..700f152e61d69d291130217a386774206c365075 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3,54 +3,54 @@ include /usr/share/dpkg/default.mk
 PACKAGE=frr
 
 SRCDIR=frr
-BUILDDIR=build-${PACKAGE}-${DEB_VERSION_UPSTREAM}
+BUILDDIR=build-$(PACKAGE)-$(DEB_VERSION_UPSTREAM)
 
 GITVERSION:=$(shell git rev-parse HEAD)
 
-MAIN_DEB=${PACKAGE}_${DEB_VERSION}_${DEB_BUILD_ARCH}.deb
+MAIN_DEB=$(PACKAGE)_$(DEB_VERSION)_$(DEB_BUILD_ARCH).deb
 OTHER_DEBS=\
-  frr-doc_${DEB_VERSION}_all.deb \
-  frr-pythontools_${DEB_VERSION}_all.deb \
-  frr-snmp_${DEB_VERSION}_${DEB_BUILD_ARCH}.deb \
+  frr-doc_$(DEB_VERSION)_all.deb \
+  frr-pythontools_$(DEB_VERSION)_all.deb \
+  frr-snmp_$(DEB_VERSION)_$(DEB_BUILD_ARCH).deb \
 
 DBG_DEBS=\
-  frr-dbgsym_${DEB_VERSION}_${DEB_BUILD_ARCH}.deb \
-  frr-snmp-dbgsym_${DEB_VERSION}_${DEB_BUILD_ARCH}.deb \
+  frr-dbgsym_$(DEB_VERSION)_$(DEB_BUILD_ARCH).deb \
+  frr-snmp-dbgsym_$(DEB_VERSION)_$(DEB_BUILD_ARCH).deb \
 
-DEBS=${MAIN_DEB} ${OTHER_DEBS} ${DBG_DEBS}
+DEBS=$(MAIN_DEB) $(OTHER_DEBS) $(DBG_DEBS)
 
-all: ${DEBS}
-       @echo ${DEBS}
+all: $(DEBS)
+       @echo $(DEBS)
 
 .PHONY: submodule
 submodule:
-       test -f "${SRCDIR}/debian/changelog" || git submodule update --init
+       test -f "$(SRCDIR)/debian/changelog" || git submodule update --init
 
-${BUILDDIR}: submodule debian/changelog
-       rm -rf ${BUILDDIR} ${BUILDDIR}.tmp
-       cp -a ${SRCDIR} ${BUILDDIR}.tmp
-       rm ${BUILDDIR}.tmp/debian/changelog
-       cp -a debian/* ${BUILDDIR}.tmp/debian/
-       mv ${BUILDDIR}.tmp ${BUILDDIR}
+$(BUILDDIR): submodule debian/changelog
+       rm -rf $(BUILDDIR) $(BUILDDIR).tmp
+       cp -a $(SRCDIR) $(BUILDDIR).tmp
+       rm $(BUILDDIR).tmp/debian/changelog
+       cp -a debian/* $(BUILDDIR).tmp/debian/
+       mv $(BUILDDIR).tmp $(BUILDDIR)
 
 .PHONY: deb
-deb: ${DEBS}
-${OTHER_DEBS} ${DBG_DEBS}: ${MAIN_DEB}
-${MAIN_DEB}: ${BUILDDIR}
-       cd ${BUILDDIR}; dpkg-buildpackage -b -uc -us --build-profiles="pkg.frr.nortrlib"
-       lintian ${DEBS}
+deb: $(DEBS)
+$(OTHER_DEBS) $(DBG_DEBS): $(MAIN_DEB)
+$(MAIN_DEB): $(BUILDDIR)
+       cd $(BUILDDIR); dpkg-buildpackage -b -uc -us --build-profiles="pkg.frr.nortrlib"
+       lintian $(DEBS)
 
 .PHONY: upload
-upload: ${DEBS}
-       tar cf - ${DEBS}|ssh -X repoman@repo.proxmox.com -- upload --product pve --dist bullseye
+upload: $(DEBS)
+       tar cf - $(DEBS)|ssh -X repoman@repo.proxmox.com -- upload --product pve --dist bullseye
 
 .PHONY: distclean
 distclean: clean
 
 .PHONY: clean
 clean:
-       rm -rf *~ debian/*~ *.deb build-${PACKAGE}* *.changes *.dsc *.buildinfo
+       rm -rf *~ debian/*~ *.deb build-$(PACKAGE)* *.changes *.dsc *.buildinfo
 
 .PHONY: dinstall
 dinstall: deb
-       dpkg -i ${DEBS}
+       dpkg -i $(DEBS)