makefile: convert to use simple parenthesis

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2023-06-06 08:44:57 +02:00
parent 0bbc9d7cb5
commit 7a7942f57f

View File

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