makefile: convert to use simple parenthesis

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2023-05-17 13:47:03 +02:00
parent 4c0e2ad7bd
commit 6e7ad15f2a

View File

@ -3,42 +3,40 @@ include /usr/share/dpkg/pkg-info.mk
PACKAGE=ifupdown2 PACKAGE=ifupdown2
SRCDIR=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} all: $(DEB)
@echo ${DEB} @echo $(DEB)
.PHONY: submodule .PHONY: submodule
submodule: submodule:
test -f "${SRCDIR}/debian/changelog" || git submodule update --init test -f "$(SRCDIR)/debian/changelog" || git submodule update --init
buildir: ${BUILDDIR} buildir: $(BUILDDIR)
${BUILDDIR}: submodule $(BUILDDIR): submodule
rm -rf $(BUILDDIR) rm -rf $(BUILDDIR)
mkdir $(BUILDDIR) mkdir $(BUILDDIR)
cp -a $(SRCDIR)/* $(BUILDDIR)/ cp -a $(SRCDIR)/* $(BUILDDIR)/
cp -R debian/* $(BUILDDIR)/debian/ cp -R debian/* $(BUILDDIR)/debian/
.PHONY: deb .PHONY: deb
deb: ${DEB} deb: $(DEB)
${DEB}: ${BUILDDIR} $(DEB): $(BUILDDIR)
cd ${BUILDDIR}; dpkg-buildpackage -rfakeroot -b -uc -us cd $(BUILDDIR); dpkg-buildpackage -rfakeroot -b -uc -us
.PHONY: upload .PHONY: upload
upload: ${DEB} upload: $(DEB)
tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg,pbs --dist bullseye 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 .PHONY: dinstall
dinstall: deb dinstall: deb
dpkg -i ${DEB} dpkg -i $(DEB)